General information
Category:
Coding, syntax & commands
>>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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only