1.

Solve : make the .bat save it's self?

Answer»

sorry I'm a bit of a newbie when  it comes to dos but Ive made a simple program to run a few things i want the .bat to save it's self to a specified location so it can be called is this possible THANK you.
       and so you don't get suspicious (i know it happens) i need it to save as my Friend wants a copy of the .bat
   once again thank you
                                     king kingbillIm not ENTIRELY sure what you want; if you have created a batch file, then by definition, it is saved.

If you want your friend to have a copy, then all you need do is GIVE it to him.

If you are emailing it to him, then you need to make clear to him where to save it (is it this that you wanted to automate ?)

Grahamyes it is i need it to auto save it's self to a locationI agree with gpl; it is not at all clear why you want to do this. Just tell your friend which location to save it to. And here's another question. Why can't "your friend" decide where to save it to? Why do you have to tell him?


sorry im not clear. and i dont need to tell my friend where to save it. maybe i should re phrase my question.Ok here goes, i want to make the .bat file rune every time the computer is started how do i do that?

hope thats better Quote from: kingkingbill on March 10, 2008, 12:27:48 PM

sorry im not clear. and i dont need to tell my friend where to save it. maybe i should re phrase my question.Ok here goes, i want to make the .bat file rune every time the computer is started how do i do that?

hope thats better

Not really; now we know you want to make a batch file which, when run, without the computer owner doing anything, saves itself to somewhere that it gets run every time the computer starts. You could have a perfectly harmless reason for wanting to do this, you could have a very bad reason. We don't know. I don't feel that it is a good idea to place details of how to do that on a forum like this.
i can asure you it is for a good reason i just want to start a few PROGRAMS such as fps creator on STARTUP and i want them to run every time. if you are not willing to tell me how to do this in public can you p.m me thank youIf thats all you want to do, why not just drag a few shortcuts to the startup folder ?
GrahamThere gpl told you
i want the programs to be run automaticly on startupAnd they will do so if you follow gpl's advice... Quote from: kingkingbill on March 10, 2008, 12:36:03 PM
i can asure you it is for a good reason i just want to start a few programs such as fps creator on startup and i want them to run every time. if you are not willing to tell me how to do this in public can you p.m me thank you

Oh right like I was born yesterday...  i seriosly do, it would help me a lot and save me time because i dont want have to open darkbasic,fpscreato,milkshape,3dsmax,notpad and other manulallyDarned if I can find it but this topic has done the rounds before tho' not from KKB.  Turned out that the .bat was to be installed on other computers to cause havoc when remotely called.

Nobody would advise then either.I agree with most on this. I cant see any valid reason why you'd want it to save it's self on a remote machine.

If this is just to help a mate out, make the batch on your machine, save it as a a txt file and email it to him, get him to change the file extention back to .bat and put in the startup folder.

Now I think of it, this could be done remotely without the remote users knowage but I'm not going to post that here......


Discussion

No Comment Found