tailieunhanh - Microsoft WSH and VBScript Programming for the Absolute Beginner Part 23

Microsoft WSH and VBScript Programming for the Absolute Beginner by Jerry Lee Ford Part 23. 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 Set objNewShortcut strAppDataPath _ C What makes working with the Quick Launch toolbar different than working with other Windows special folders is that you must specify the location of the Quick Launch toolbar within the special folder AppData that contains it. Figure shows how the Quick Launch toolbar appears once the shortcut of your VBScript game has been added to it. Figure Examining the Windows Quick Launch toolbar after adding a shortcut to the GuessA game. Guess a Number A Complete Shortcut Script Now let s put together some of the shortcut examples you worked on previously to make a new script that creates shortcuts for on the Windows desktop Programs menu and Quick Launch toolbar. Script Name Author Jerry Ford Created 11 28 02 Description This script creates shortcuts for the VBScript on the Windows desktop Programs menu Quick Launch Toolbar. Initialization Section Option Explicit Dim objWshShl strTargetFolder objDesktopShortcut objProgramsShortcut Dim strAppDataPath objQuickLaunchShortcut Chapter 6 Processing Collections of Data Establish an instance of the WshShell object Set objWshShl Create the Desktop shortcut strTargetFolder Desktop Set objDesktopShortcut strTargetFolder C Guess a Number Game CTRL Alt G Create the Programs menu shortcut strTargetFolder Programs Set objProgramsShortcut strTargetFolder c Create the Quick Launch Toolbar