Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Writing a file to the desktop
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2012
Network:
Windows 2008 Server
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01610493
Message ID:
01610496
Views:
62
>>I can create a folder programatically from VFP as C:\stuff, but I want to create it on the Windows desktop, and create files from VFP and put them into that folder that's on the desktop. What's the right way to reference the desktop so that I can do this?
>>
>>Bob
>
>It can be referenced as a regular folder, i.e.
>C:\Users\yourUsername\Desktop
>or better yet
>
>cUprof = GETENV("USERPROFILE")
>cDesktopFolder = ADDBS(m.cUprof) + "Desktop"
>
The problem with this approach is that the users can change the location of the desktop folder to whatever location they want.
"The five senses obstruct or deform the apprehension of reality."
Jorge L. Borges?

"Premature optimization is the root of all evil in programming."
Donald Knuth, repeating C. A. R. Hoare

"To die for a religion is easier than to live it absolutely"
Jorge L. Borges
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform