GodForsakenSoul Posted May 14, 2008 Share Posted May 14, 2008 (edited) i'm trying to make a script for my friend to battle malicious processes that appear to eat his cpu. my general idea is while $l=1 sleep (100) if processexists (ping.exe);i forgot the exact line... ._. processkill (ping.exe) endif wend i want it to start on windows logon. the ultimate thing for me would be to put some lines of code instead of putting it in the schedule thing. help? edit: the schedule thing seems to make the computer restart o.O; almost anything he does makes the computer restart. wtf?! Edited May 14, 2008 by GodForsakenSoul Link to comment Share on other sites More sharing options...
cherdeg Posted May 14, 2008 Share Posted May 14, 2008 i want it to start on windows logon. the ultimate thing for me would be to put some lines of code instead of putting it in the schedule thing.Hi there,Part-1 (do it by the registry)- start regedit.exe- create a new string value for the compiled .exe within (the value's name is irrelevant, important is only the correct path to the .exe): HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run- close regedit.exe- restart systemPart-2 (do it even easier)- just copy the .exe to the folder: C:\Documents and Settings\All Users\Start Menu\Programs\StartupPart-3 (solve the problem)Instead of battleing unknown processes at start:- start msconfig.exe- go to the "startup" tab- disable the programs you don't want to run at system start Regards,Chrisp.s.: Maybe you could have a look at my problem? http://www.autoitscript.com/forum/index.php?showtopic=71138 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now