Jump to content

move running .exe


 Share

Recommended Posts

I didn't use de search function because i didn't know which words i should use...

My problem is that:

if i start my script, it should copy ITSELF to a dir...

for example if i run "test.exe" from my desktop it should make a copy of "test.exe" to "c:\temp\"

thanks for every help! (and sorry for my english, i'm not englishspeaking... :P )

Link to comment
Share on other sites

make a copy of the script and change the name of it. add this to your script

fileinstall("yourpath&othername.exe","whereyouwantit&othername.exe")
run("yourpath&othername.exe")

do that for each place you want to put it

EDIT: that would make the .exe twice as big.... my first solution before i edited was to make a starter script.. like so

;starter script
fileinstall("yourpath&program.exe","whereyouwantit&program.exe")
fileinstall("yourpath&program.exe","whereyouwantit&OTHERNAME.exe");;***
;***notice you can rename the program to run 2 copies in the same dir if wanted.
run("yourpath&program.exe")
run("yourpath&othername.exe")

i think this would be the best option, but i had read your post and changed my original post because i didnt read something correctly. but i think this second way is the best option overall

Edited by t0ddie

Valik Note Added 19 October 2006 - 08:38 AMAdded to warn level I just plain don't like you.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...