Posted 07 October 2015 - 02:18 AM
Hello, I wrote a tunneling program that uses a custom API and uploaded it to pastebin so that my friend could use it, but since it used a custom API to run he would have to download that too. So instead of making him get all of the things that he needed himself I wrote a program that when run would automatically download the pastebin files that it required and then it would delete it's self. How ever I realized that there was a potential problem with having it try to delete its self. That being that the program could have a different name than the one that I gave it if he downloaded it as a different file name. So my question is: is there any way for a program to get the name of the file that it is using to run so that I can use it in the program?
Thanks for any help!
Thanks for any help!