Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
'CD' Command
Message
 
 
To
17/05/2001 11:16:21
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
00508322
Message ID:
00508334
Views:
23
This message has been marked as the solution to the initial question of the thread.
I know you answered yourself, but the correct solution is:

CD (gcPath)

>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.
Mark McCasland
Midlothian, TX USA
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform