Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Getdir() default to desktop
Message
 
To
01/02/2007 13:58:31
Jerry Tovar
Dana Corporation Dana It
Maumee, Ohio, United States
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9
Miscellaneous
Thread ID:
01191530
Message ID:
01191536
Views:
8
>Using VFP9, how can I make the GetDir() default to the user's desktop?
>
>I currently use GetDir("c:\SomeDir"), but instead I would like to do something like this, GetDir("user's desktop"). Can this be done?
>
>Thanks,
>
>Jerry
oWs = CREATEOBJECT([WSCRIPT.Shell])
oWs.SpecialFolders([Desktop])
lcFoder =  oWs.SpecialFolders([Desktop])
? GetDir(lcFoder)
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform