Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Getting Windows Desktop path.
Message
From
19/12/2001 09:48:34
 
 
To
19/12/2001 07:02:13
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00596030
Message ID:
00596127
Views:
24
>Shaishav,
>You can use the WSH to get this information:
>
>oShell = CREATEOBJECT("Wscript.Shell")
>?oShell.SpecialFolders("Desktop")
>?oShell.SpecialFolders("MyDocuments")
>
In addition to this, you can use the SHGetFolderPath() WINAPI, documented in the WinAPI section; the sole advantage to it is it does not require the WSH installed.

The approach of GETENV('WINDIR') + 'Desktop' will not work outside of Win9x, and won't work in Win9x if user profiles are enabled.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Reply
Map
View

Click here to load this message in the networking platform