Jump to content




What is the name?


  • You cannot reply to this topic
3 replies to this topic

#1 101Pazzi

  • Members
  • 3 posts

Posted 07 October 2015 - 01: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!

#2 KingofGamesYami

  • Members
  • 3,002 posts
  • LocationUnited States of America

Posted 07 October 2015 - 04:21 AM

shell.getRunningProgram

#3 Creator

    Mad Dash Victor

  • Members
  • 2,168 posts
  • LocationYou will never find me, muhahahahahaha

Posted 07 October 2015 - 02:53 PM

But only when it is ran using shell.run.

#4 TYKUHN2

  • Members
  • 210 posts
  • LocationSomewhere in this dimension... I think.

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.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users