how to make a batch file that...

shiftyape

Honorable
Feb 23, 2013
268
0
10,780
how to make a batch file that elevates itself to admin, opens command prompt and creates another batch file and then makes that batch file a system file, and then hides the second batch file as well?
 
Solution
its just so no one will mess with it.

First, why does someone else have access to your logon?
Second, it's not 'no help', just that it sounds incredibly shady.
Third, look up Run as a Service.
Fourth, why can't you just create the batch file manually, rather than this one creates that one, etc....

shiftyape

Honorable
Feb 23, 2013
268
0
10,780


its just so no one will mess with it. it is so i can automatically run defraggler and ccleaner and virus scan on a schecdule and i dont want anyone deleting it so that is the best thing i could think of
 

USAFRet

Titan
Moderator
its just so no one will mess with it.

First, why does someone else have access to your logon?
Second, it's not 'no help', just that it sounds incredibly shady.
Third, look up Run as a Service.
Fourth, why can't you just create the batch file manually, rather than this one creates that one, etc....
 
Solution

shiftyape

Honorable
Feb 23, 2013
268
0
10,780


we dont believe in privacy on our home computer. second, sorry. third, ok, and fourth, yep i just figured out i could do that. thanks i figured it out