Page 1 of 1
Determine file name of my own exe
Posted: Fri Mar 18, 2011 9:57 pm
by hth
I want to determine the file name of my own actual exe.
With the directory it is no problem (GetCurrentDirectory())
hth
Re: Determine file name of my own exe
Posted: Fri Mar 18, 2011 10:00 pm
by Trond
hth wrote:I want to determine the file name of my own actual exe.
With the directory it is no problem (GetCurrentDirectory())
GetCurrentDirectory() does not always return the directory of your exe. I don't know why you think it does.
Code: Select all
Debug ProgramFilename() ; Directory and filename
Debug GetPathPart(ProgramFilename()) ; Directory
Re: Determine file name of my own exe
Posted: Fri Mar 18, 2011 10:00 pm
by ts-soft
Code: Select all
Debug GetFilePart(ProgramFilename())