Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Getting Windows Desktop path.
Message
From
19/12/2001 07:02:13
 
 
To
19/12/2001 06:48:49
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00596030
Message ID:
00596035
Views:
30
Shaishav,
You can use the WSH to get this information:
oShell = CREATEOBJECT("Wscript.Shell")
?oShell.SpecialFolders("Desktop")
?oShell.SpecialFolders("MyDocuments")
SpecialFolders() allows you to query the following folders:

AllUsersDesktop
AllUsersStartMenu
AllUsersPrograms
AllUsersStartup
Desktop
Favorites
Fonts
MyDocuments
NetHood
PrintHood
Programs
Recent
SendTo
StartMenu
StartupB
Templates

HTH
>Hi Everyone,
>
>Is there anyway I can get the path to windows desktop folder. Generally its under Windows folder, and I can get it by using
>
>GETENV("WINDIR") and additing "\Desktop" to it. However, if the user profiles are active, this is not the right way. Can any one help me.
>
>Or is there anyway I can get path to My Document folder??
>
>
>TIA.
Daniel
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform