Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Set Default to a Network Drive
Message
From
24/06/1999 16:31:11
Al Doman (Online)
M3 Enterprises Inc.
North Vancouver, British Columbia, Canada
 
 
To
24/06/1999 15:56:25
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00233682
Message ID:
00233701
Views:
30
>Can you set your default directory to a network server name? For example, "Set Default To //myserver/apps/myprog" I do this in VFP6 and when I set a variable to it, say lcMyProgDir, then run a command like "set defa to &lcMyProgDir" in my program, I receive an error "Invalid Path or FileName."

I believe you can - 2 caveats though:

1. I would try backslashes rather than forward slashes.
2. SET DEFAULT TO (lcMyProgDir) is better, because it will accept directory names with spaces in them. A straight macro expansion will blow up because the dir name will be treated as 2 or more separate words.
Regards. Al

"Violence is the last refuge of the incompetent." -- Isaac Asimov
"Never let your sense of morals prevent you from doing what is right." -- Isaac Asimov

Neither a despot, nor a doormat, be

Every app wants to be a database app when it grows up
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform