Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to find the full path of a specific folder
Message
From
11/05/2002 10:07:15
 
 
To
11/05/2002 08:54:11
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00655362
Message ID:
00655373
Views:
16
>most of vfp functions are used to find a file, file's full path but never the full path of a specific folder.
>i'm trying to creat a shortcut on the quick launch taskbar. so i would like to find the "quick launch" folder to perform that operation.
>how can i do it?


You can try using WSH:
oWsh = CreateObject("WScript.Shell")
cDesktopDir = oWsh.SpecialFolders("Desktop")
oLnk = oWsh.CreateShortcut(cDesktopDir + "\\Shortcut to Notepad.lnk")
oLnk.TargetPath = oWsh.ExpandEnvironmentStrings("%windir%") + "\notepad.exe"
oLnk.Save()


Alex Feldstein, MCP, Microsoft MVP
VFP Tips: English - Spanish
Website - Blog - Photo Gallery


"Once again, we come to the Holiday Season, a deeply religious time that each of us observes, in his own way, by going to the mall of his choice." -- Dave Barry
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform