Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Invalid path or filename
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01165554
Message ID:
01165557
Views:
14
Doug,

You can get around it by stop using & macros where they don't belong *g*

The error is happening because there is a space in the path.
gc_HomeDir = SYS(5) + SYS(2003)
SET DEFAULT TO (gc_HomeDir)
>I have just taken over a system from someone else. Built an install and am getting the following error message: Invalid path or filename - this happens when I try to run the exe. I have tracked it to these lines in the source code:
>
>gc_HomeDir = SYS(5) + SYS(2003)
>SET DEFAULT TO &gc_HomeDir
>
>The error comes up with the SET DEFAULT TO command. I believe this is because the folder where the code resides has a space in the folder name (My Documents\system name). Does anyone know how I can get around this?
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform