Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Set Default to a Network Drive
Message
From
24/06/1999 23:54:24
 
 
To
24/06/1999 16:31:11
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00233682
Message ID:
00233822
Views:
28
>>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.

FWIW: My associate in the office just happened to look at the M$ KB on UNC usage, and as I recall, according to what he printed out, VFP-6 fully supports UNC coding for everything except CD and SET DEFAULT... Easy enough to try it...

HTH

Rob
Previous
Reply
Map
View

Click here to load this message in the networking platform