Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
'CD' Command
Message
De
18/05/2001 13:58:51
Patrick O'Neil
American Specialty Information Services
Roanoke, Indiana, États-Unis
 
 
À
17/05/2001 11:16:21
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Divers
Thread ID:
00508322
Message ID:
00508878
Vues:
25
>Here's my problem:
>
>If I do this:
>
<CODE>
>CD "C:\Program Files\MyProgram\"
></CODE>
>It works fine.
>
>But if I do this:
>
<CODE>
>LOCAL gcPath
>gcPath = "C:\Program Files\MyProgram\"
>CD &gcPath
></CODE>
>I get an "Invalid path or filename" error. I know that it's because of the space character in the path but why is it working when written directly and not when using a variable? What can I do to correct this problem?
>
>Thanks a lot in advance, Stephane.


try:

LOCAL gcPath
gcPath = "C:\Program Files\MyProgram\"
CD "'" + &gcPath + "'"

or

LOCAL my_command_string
my_command_string = "CD 'c:\Program Files\MyProgram\'"
&my_command_string
patrick
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform