Executable Names
BlitzPlus Forums/BlitzPlus Beginners Area/Executable Names
| ||
Is there any way to tell the name of a program from inside of it? As in, if some retard renamed the program from its original name and you wanted to create a backup of the program from inside of itself, how would you tell the new name of the program? |
| ||
Read the directory the app is in, find exe files, open them up for reading, search for a pre-defined tag (say a string... Class names are good'uns, but useless in Blitz, as you cannot predefine your own), if the string is in the file, erm, back up said file! |
| ||
Another way is to check the size of the executable in the directory. |
| ||
IIRC, one of the environment variables will contain the name of the running .EXE, and you can check those from within blitzplus. |