Jump to content




finding the parent script


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

#1 Exerro

  • Members
  • 801 posts

Posted 13 January 2013 - 08:24 AM

Im trying to get a program to copy itself to other programs ...but it can be called anything so is there any way to find what the program the script is running from is called i.e. fs.open(script.parent,"r")
If you need to know im making a load of virusses to test my antivirus and this will be a part of the virus

#2 remiX

  • Members
  • 2,076 posts
  • LocationSouth Africa

Posted 13 January 2013 - 08:32 AM

thisProgramName = fs.getName(shell.getRunningProgram())

shell.getRunningProgram() returns the full path,
fs.getName() will make it return the last name

#3 Exerro

  • Members
  • 801 posts

Posted 14 January 2013 - 01:21 AM

ok thanks :D very useful





2 user(s) are reading this topic

0 members, 2 guests, 0 anonymous users