Dear all,
This is the first thread I sent to this board, please don't make me disappointed. :)
I have two easy questions:
1- I want to make a program that gives you the full path of itself, maybe this sounds silly, but I really want it.
For example if the program name is "program.exe", and it is in the "c:" folder; I want it to print in the screen "my path is c:program.exe" , isn't it easy? *
2- I want to make another program that gives you its Arguments. For example if your program is program.exe, and you run that program from the DOS by this command "program.exe -a -p -d", then it prints "My arguments are -a -p -d".
Please help me guys.
I tried several times to find some thing about that on the internet, but you are my last hope. :)
* note :
I know how to get the current directory by API, but what I want to know is how to find the full path of the file that is currently running.