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!
What is the name?
Started by 101Pazzi, Oct 07 2015 01:18 AM
3 replies to this topic
#1
Posted 07 October 2015 - 01:18 AM
#3
Posted 07 October 2015 - 02:53 PM
But only when it is ran using shell.run.
#4
Posted 07 October 2015 - 08:02 PM
Creator is correct, it doesn't always work.
But if you run say "download" on the command prompt it does work.
So assuming your friend is a basic computer user it is probably the only way he will run it and shell.getRunningProgram should suffice.
But if you run say "download" on the command prompt it does work.
So assuming your friend is a basic computer user it is probably the only way he will run it and shell.getRunningProgram should suffice.
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users











