Jump to content

starting the script on log on


Recommended Posts

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 by GodForsakenSoul
Link to comment
Share on other sites

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 system

Part-2 (do it even easier)

- just copy the .exe to the folder:

C:\Documents and Settings\All Users\Start Menu\Programs\Startup

Part-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,

Chris

p.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

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...