Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Set Default to a Network Drive
Message
De
24/06/1999 16:31:11
 
 
À
24/06/1999 15:56:25
Greg Coopman
Gc Systems Corporation
Hollywood, Floride, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00233682
Message ID:
00233701
Vues:
31
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform