We store the folder path in the variable strPrograms: Set objShell = CreateObject(“Wscript.Shell”) This time we create an instance of the WSH Shell object and call the SpecialFolders method, telling SpecialFolders we’d like the location of the Programs folder. Next we need to determine the locations of the Start menu Programs folder. If you want to create a shortcut to a different folder (for example, \\atl-fs-01\public\kenmyer), you just need to change this line of code accordingly. That gives us a path to a user folder like C:\Documents and Settings\kenmyer. Note that we’ve also created a variable named strPath and assigned it the value C:\Documents and Settings\ plus the user name (e.g., kenmyer). StrPath = “C:\Documents and Settings\”
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |