TAILIEUCHUNG - Microsoft WSH and VBScript Programming for the Absolute Beginner Part 8

Microsoft WSH and VBScript Programming for the Absolute Beginner by Jerry Lee Ford Part 8. If you are new to programming with Microsoft WSH and VBScript and are looking for a solid introduction, this is the book for you. Developed by computer science professors, books in the for the absolute beginner series teach the principles of programming through simple game creation. You will acquire the skills that you need for more practical WSH and VBScript programming applications and will learn how these skills can be put to use in real-world scenarios. Best of all, by the time you finish this book,. | Microsoft WSH and VBScript Programming for the Absolute Beginner Second Edition Figure Examining the contents of the application event log. Only the Windows .NET XP 2000 and NT operating systems support event logs. Don t try running this script on other Windows operating systems such as Windows 98 or Me. The scripting logic to write a message to the Windows application event log is very simple Set WshShl 0 - Beginning script execution. The first line of this script establishes an instance of the WshShell object. The second line uses the WshShell object s LogEvent method to write a message to the event log. One really good use of the WshShell object s LogEvent method is to log the execution of scripts run using the Windows Event Scheduler service. This way you can review the application event log each day and make sure that your scripts are executing when you expect them to. Using your script editor create a new script called that contains the previous statements. Run the script and then check the application event log you should find the message added by the script. Double-click it you should see the Event Properties dialog for the event as shown in Figure . Chapter 2 Overview of the Windows Script Host ViGURE Viewing the event that the script added to the Windows application event log. Configuring WSH Execution Hosts So far you ve used the CScript and WScript execution host default settings for each script that you ve created and run. If you want to you can modify these default settings to better suit your personal preferences. The WSH provides separate configuration settings for the WScript and CScript execution hosts. Because the WScript execution hosts can process scripts run from either the Windows GUI or the Windows command line there are two different ways to configure them. The WSH also allows you to override execution host settings on-the-fly by

TAILIEUCHUNG - Chia sẻ tài liệu không giới hạn
Địa chỉ : 444 Hoang Hoa Tham, Hanoi, Viet Nam
Website : tailieuchung.com
Email : tailieuchung20@gmail.com
Tailieuchung.com là thư viện tài liệu trực tuyến, nơi chia sẽ trao đổi hàng triệu tài liệu như luận văn đồ án, sách, giáo trình, đề thi.
Chúng tôi không chịu trách nhiệm liên quan đến các vấn đề bản quyền nội dung tài liệu được thành viên tự nguyện đăng tải lên, nếu phát hiện thấy tài liệu xấu hoặc tài liệu có bản quyền xin hãy email cho chúng tôi.
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.