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????()))
Change Directory to where the EXE is
Change Directory to where the EXE is
Many thanks
Ollie.
Using:
xHarbour Compiler build 1.2.1 (SimpLex) (Rev. 6406)
Borland C++ 5.5.1
FWH 9.04 (2009 Apr)
Ollie.
Using:
xHarbour Compiler build 1.2.1 (SimpLex) (Rev. 6406)
Borland C++ 5.5.1
FWH 9.04 (2009 Apr)
- Enrico Maria Giordano
- Posts: 7355
- Joined: Thu Oct 06, 2005 8:17 pm
- Location: Roma - Italia
- Contact:
Re: Change Directory to where the EXE is
Code: Select all
CFILEPATH( GETMODULEFILENAME( GETINSTANCE() ) ) + "YOUREXE.EXE"