Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations sizbut on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Find and set the default path to a project 1

Status
Not open for further replies.

RussA

Programmer
Mar 19, 2003
27
US
If I have a FPW90 project on my USB flash drive and work on that project on different pc’s with different paths to that USB flash drive. Is there a simple command / code that will find and set the default path to that project? Thanks in advance.

Russ A
 
Hi Russ,

One possibility would be to execute this command from your main program:

Code:
SET DEFAULT TO JUSTPATH(SYS(16))

That will set the default directory to the folder containing the PRG that you are execting, or the one containing the EXE if you are running outside the development environment.

Is that what you were looking for?

Mike

__________________________________
Mike Lewis (Edinburgh, Scotland)

My Visual FoxPro site: www.ml-consult.co.uk
 
Mike,
Worked perfect, thanks very much!

Russ A
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top