Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Changing current directory and relative path
Message
From
03/11/2010 14:16:14
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01488018
Message ID:
01488022
Views:
74
This message has been marked as the solution to the initial question of the thread.
>Hi everybody,
>
>I'm using relative paths in the development. I have code that changes the current directory and then all my relative paths don't work anymore.
>
>Is there a method to fix the probem (still use the relative paths, but allow changing of the main directory)?
>
>It is not a problem in the compiled application, but I want to be able to test it in IDE.
>
>Thanks in advance.

Is it that when you change the main directory you want to change the path statement so that the paths that were relative to the previous main directory so that they are now relative to the new main directory?

It sounds like you should be using absolute paths.
Frank.

Frank Cazabon
Samaan Systems Ltd.
www.samaansystems.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform