Batch File Help!

Associate
Joined
18 Oct 2002
Posts
1,704
Location
Glasgow
Guys,

I have a batch file which is meant to close down a process currently running on the pc.

when i type the following line into a command window (start, run, CMD) the process is shut down correctly. When i enter the same line into a notepad and save as a batch file and run it, it contunally loops on an open window (as shown below)

taskkill /im ehshell.exe

Here is what i get......ERROR

Cheers
 
im not sure that helps to be honest.

i know how to use the taskkill command and it works perfectly when using it manually on the command window, however when i put it into the batch file it just seems to spool up and up the page, as per the error above.

enlighten me if you think the link helps?
 
mm its bin some time for me using cmd commands

maybe its

End Sub

sorry if it don't work
 
mm i don't know then its weird really as it shouldn't keep looping like that

you could just use quit at the end of the of the batch, that should do it
 
if it doesn't then its some think to do with the administrator privileges
of the process then maybe?
 
Tosk said:
if it doesn't then its some think to do with the administrator privileges
of the process then maybe?

not sure, if i can run it from the command line, whats the difference running it from a batch file, both exactly the same.......
 
Back
Top Bottom