I want to determine the file name of my own actual exe.
With the directory it is no problem (GetCurrentDirectory())
hth
Determine file name of my own exe
Re: Determine file name of my own exe
GetCurrentDirectory() does not always return the directory of your exe. I don't know why you think it does.hth wrote:I want to determine the file name of my own actual exe.
With the directory it is no problem (GetCurrentDirectory())
Code: Select all
Debug ProgramFilename() ; Directory and filename
Debug GetPathPart(ProgramFilename()) ; Directory
Re: Determine file name of my own exe
Code: Select all
Debug GetFilePart(ProgramFilename())
PureBasic 5.73 | SpiderBasic 2.30 | Windows 10 Pro (x64) | Linux Mint 20.1 (x64)
Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.

Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.
