Login | |
|
 |
Re: Detect startup folder HOWTO ? - 11/2/2004 11:29:35 PM
|
|
 |
|
| |
mbouchard
Posts: 1916
Score: 16
Joined: 5/15/2003
From: USA
Status: offline
|
You can also use SpecialFolders. set WshShell = WScript.CreateObject("WScript.Shell") strAllDesktop = WshShell.SpecialFolders("AllUsersDesktop") msgbox StrAllDesktop Here is a list of all folders that you can get with SpecialFolders Taken from the help file AllUsersDesktop AllUsersStartMenu AllUsersPrograms AllUsersStartup Desktop Favorites Fonts MyDocuments NetHood PrintHood Programs Recent SendTo StartMenu Startup Templates
|
|
| |
|
|
|
 |
Re: Detect startup folder HOWTO ? - 11/4/2004 12:47:53 AM
|
|
 |
|
| |
mbouchard
Posts: 1916
Score: 16
Joined: 5/15/2003
From: USA
Status: offline
|
What do you consider "pure" vbscript? The script I posted was taken directly from Wscript documentation. It will also work if placed in a HTML page, but you will be prompted due to activeX security. If used in an HTA you will not get this prompt.
|
|
| |
|
|
|
|
|