Notices
ScoobyNet General General Subaru Discussion

DOS guru.....read-on

Thread Tools
 
Search this Thread
 
Old Jan 2, 2001 | 03:18 PM
  #1  
hooksin's Avatar
hooksin
Thread Starter
Scooby Regular
 
Joined: Sep 2000
Posts: 132
Likes: 0
Question


Alright I know it's in the wrong forum...first time ok, but

a quick question: how can I kill an active .bat file from cmd on NT?
file is hung waiting for response in background I think, as person who wrote the .bat forgot the all important /Y.
Can't reboot server, no point in regedit because hive is not dynamic, and reload of hive is same as re-boot anyway.
any ideas from you DOS guru's??

thanks

Nick
Reply
Old Jan 2, 2001 | 03:21 PM
  #2  
ChrisB's Avatar
ChrisB
Moderator
 
Joined: Dec 1998
Posts: 23,573
Likes: 0
From: Staffs
Post

Off the top of my head - does it not show up in Task Manager as an active app? Or try looking in the Processes List for CMD.EXE and kill that.

Chris.
Reply
Old Jan 2, 2001 | 03:24 PM
  #3  
chiark's Avatar
chiark
Scooby Regular
 
Joined: Jun 2000
Posts: 13,735
Likes: 0
Post

Kill NTVDM.exe within the Process list from task manager (press ctrl-shift-esc to access)
Reply
Old Jan 2, 2001 | 03:25 PM
  #4  
AWD's Avatar
AWD
Scooby Regular
 
Joined: Jun 2000
Posts: 5,365
Likes: 0
Cool


If it is a batch file can't you use CTRL-C to abort it?

Otherwise use TaskManager and kill the relevant process.
Reply
Old Jan 2, 2001 | 03:28 PM
  #5  
hooksin's Avatar
hooksin
Thread Starter
Scooby Regular
 
Joined: Sep 2000
Posts: 132
Likes: 0
Post

Chris - tried the first 10 things you would normally think of, and the next 10 as well...

task manager gives an "access denied", as if it was a system critical process.

their is no cmd window open either

Chiark - looked for that originally, their are no vdm's running, only cmd.exe
if running .bat file in NT does it open a virtual session or run as a seperate cmd.exe??

any more ideas.....
sorry once again about the wrong forum guys but need a speedy response.

Nick

[This message has been edited by hooksin (edited 02 January 2001).]

[This message has been edited by hooksin (edited 02 January 2001).]
Reply
Old Jan 2, 2001 | 03:35 PM
  #6  
IntegraR's Avatar
IntegraR
Scooby Regular
 
Joined: Feb 2001
Posts: 527
Likes: 0
Post

Perhaps you could use Regedit to find out which service its dependant on, or waiting for, and then kill that first.
Reply
Old Jan 2, 2001 | 03:37 PM
  #7  
ChrisB's Avatar
ChrisB
Moderator
 
Joined: Dec 1998
Posts: 23,573
Likes: 0
From: Staffs
Post

Try Kill.exe from the NT Res Kit?

D/L if required from
Reply
Old Jan 2, 2001 | 03:40 PM
  #8  
IntegraR's Avatar
IntegraR
Scooby Regular
 
Joined: Feb 2001
Posts: 527
Likes: 0
Post

or maybe use the "net stop filename.bat" command from Command Prompt.
Failing which, tell all your users to hang ten, and after removing the .bat from Start Up, reboot.
Reply
Old Jan 2, 2001 | 03:47 PM
  #9  
hooksin's Avatar
hooksin
Thread Starter
Scooby Regular
 
Joined: Sep 2000
Posts: 132
Likes: 0
Post

Chris B - thanks, vaguely remember someone mentioning that last year, but you get the credit for this one, worked a treat.

cheers anyone else....

btw, I have the full Winternals Admin kit if any of you sad IT professional type people require a proper recovery suite. let me know.
Reply
Related Topics
Thread
Thread Starter
Forum
Replies
Last Post
Darrell@Scoobyworx
Trader Announcements
26
Jan 30, 2024 01:27 PM
blackieblob
ScoobyNet General
4
Oct 1, 2015 11:37 AM
alcazar
Non Scooby Related
37
Sep 27, 2015 10:35 PM
StueyBII
General Technical
4
Sep 26, 2015 12:35 PM




All times are GMT +1. The time now is 11:09 PM.