- Posts: 25
- Thank you received: 0
script to terminate the process
17 years 7 months ago #21230
by yadav
script to terminate the process was created by yadav
i got one doubt....we have an windows 2003 server our company in that we have installed some applications,when we login to the system and if we open task manager some applications like crasos.exe,HPGS2WNF.exe are running these are related to some applications what we have installed...the only way to terminate this process is using task manager.....but i wrote some logon script to terminate that process ......but its not working can u help me regarding this
thank you,
prasad yadav
thank you,
prasad yadav
- wrecklesswun
- Offline
- New Member
Less
More
- Posts: 3
- Thank you received: 0
17 years 6 months ago #21674
by wrecklesswun
Replied by wrecklesswun on topic msconfig
Use the msconfig utility to disable the associated application that starts up. Is the login script you are running run as the user or machine?
- Bionicthumb
- Offline
- Junior Member
Less
More
- Posts: 21
- Thank you received: 0
17 years 5 months ago #22041
by Bionicthumb
Replied by Bionicthumb on topic Re: script to terminate the process
I agree with wrecklesswun about disabling the application from starting, but if you want a script...
[code:1]
setlocal
:START
tasklist | find /I "HPGS2WNF.exe"
set myerrorlevel=%errorlevel%
if %myerrorlevel% equ 0 taskkill /F /IM "HPGS2WNF.exe"
if %myerrorlevel% neq 0 ping 233.233.233.233 -w 1000 -n 2 & goto :START
[/code:1]
Save it with a .bat extension and place it in your user's "startup" directory in the start menu. The ping command is there to control the looping so that it doesn't consume 100% of the CPU.
[code:1]
setlocal
:START
tasklist | find /I "HPGS2WNF.exe"
set myerrorlevel=%errorlevel%
if %myerrorlevel% equ 0 taskkill /F /IM "HPGS2WNF.exe"
if %myerrorlevel% neq 0 ping 233.233.233.233 -w 1000 -n 2 & goto :START
[/code:1]
Save it with a .bat extension and place it in your user's "startup" directory in the start menu. The ping command is there to control the looping so that it doesn't consume 100% of the CPU.
Time to create page: 0.123 seconds