Page 1 of 1
Exe Name
Posted: Wed May 28, 2003 2:44 pm
by gamecoders
exists a method in order to gain the name of the exe at runtime?
Posted: Wed May 28, 2003 2:51 pm
by Froggerprogger
I think you are searching for the WinAPI-Call GetModuleFileName_() ?
Code: Select all
filename.s = Space(1000)
GetModuleFileName_(0,filename.s,1000)
Debug filename
Posted: Wed May 28, 2003 3:00 pm
by gamecoders
I did not think was one inner function
thx for help
Posted: Thu May 29, 2003 12:15 pm
by PB
> filename.s = Space(1000)
> GetModuleFileName_(0,filename.s,1000)
Don't forget that the above returns the full path and exe name, and not
just the exe name alone; so use GetFilePart if you want just the exe name.