Change Directory to where the EXE is

Post Reply
Ollie
Posts: 233
Joined: Sat Dec 30, 2006 6:10 am

Change Directory to where the EXE is

Post by Ollie »

I cannot rely on the users' shortcut to ensure I have the right "working directory"

How can I find the name of the directory of the EXE that is being run so I can change to the directory where the EXE is with

DirChange(ALLTRIM( CurDrive() + ":\" + EXEDIR????()))
Many thanks
Ollie.

Using:
xHarbour Compiler build 1.2.1 (SimpLex) (Rev. 6406)
Borland C++ 5.5.1
FWH 9.04 (2009 Apr)
Ollie
Posts: 233
Joined: Sat Dec 30, 2006 6:10 am

Post by Ollie »

Thank you very much.
Many thanks
Ollie.

Using:
xHarbour Compiler build 1.2.1 (SimpLex) (Rev. 6406)
Borland C++ 5.5.1
FWH 9.04 (2009 Apr)
Post Reply