Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Getdir() default to desktop
Message
From
02/02/2007 13:16:34
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:
01191921
Views:
9
Thank you,

Jerry


>>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
>
>
>oShell = CREATEOBJ('Shell.Application')
>oFolder = oShell.NameSpace(0)
>
>? GetDir(oFolder.Self.Path)
>
Previous
Reply
Map
View

Click here to load this message in the networking platform