Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Desktop link
Message
 
 
To
16/10/2003 12:13:45
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
00839338
Message ID:
00839346
Views:
22
This message has been marked as the solution to the initial question of the thread.
You cannot assume that Desktop folder is a subfolder of 'C:\Documents and Settings\' because it can be changed. Using WSH you can retrieve location of Desktop folder for the current user and all users.
oShell = Createobject("wscript.shell")
lcDesktop = oShell.SpecialFolders("Desktop")
lcDesktopAll = oShell.SpecialFolders("AllUsersDesktop")
>Hi Everyone,
>
>Anybody know how to get all the files that are shown in the desktop of the computer. I tried to check in the user profiles under the
>"C:\Documents and Settings\XXXXX\Desktop" directory where the "XXXXX" is the user name but it is not complete. It only contains the partial file link and not all the files that I had on my desktop.
--sb--
Previous
Reply
Map
View

Click here to load this message in the networking platform