Notices
ScoobyNet General General Subaru Discussion
Sponsored by:
Sponsored by:

DOS guru.....read-on

Thread Tools
 
Search this Thread
 
Old 02 January 2001, 03:18 PM
  #1  
hooksin
Scooby Regular
Thread Starter
 
hooksin's Avatar
 
Join Date: Sep 2000
Posts: 132
Likes: 0
Received 0 Likes on 0 Posts
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
Old 02 January 2001, 03:21 PM
  #2  
ChrisB
Moderator
 
ChrisB's Avatar
 
Join Date: Dec 1998
Location: Staffs
Posts: 23,573
Likes: 0
Received 0 Likes on 0 Posts
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.
Old 02 January 2001, 03:24 PM
  #3  
chiark
Scooby Regular
 
chiark's Avatar
 
Join Date: Jun 2000
Posts: 13,735
Likes: 0
Received 0 Likes on 0 Posts
Post

Kill NTVDM.exe within the Process list from task manager (press ctrl-shift-esc to access)
Old 02 January 2001, 03:25 PM
  #4  
AWD
Scooby Regular
 
AWD's Avatar
 
Join Date: Jun 2000
Posts: 5,365
Likes: 0
Received 0 Likes on 0 Posts
Cool


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

Otherwise use TaskManager and kill the relevant process.
Old 02 January 2001, 03:28 PM
  #5  
hooksin
Scooby Regular
Thread Starter
 
hooksin's Avatar
 
Join Date: Sep 2000
Posts: 132
Likes: 0
Received 0 Likes on 0 Posts
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).]
Old 02 January 2001, 03:35 PM
  #6  
IntegraR
Scooby Regular
 
IntegraR's Avatar
 
Join Date: Feb 2001
Posts: 527
Likes: 0
Received 0 Likes on 0 Posts
Post

Perhaps you could use Regedit to find out which service its dependant on, or waiting for, and then kill that first.
Old 02 January 2001, 03:37 PM
  #7  
ChrisB
Moderator
 
ChrisB's Avatar
 
Join Date: Dec 1998
Location: Staffs
Posts: 23,573
Likes: 0
Received 0 Likes on 0 Posts
Post

Try Kill.exe from the NT Res Kit?

D/L if required from
Old 02 January 2001, 03:40 PM
  #8  
IntegraR
Scooby Regular
 
IntegraR's Avatar
 
Join Date: Feb 2001
Posts: 527
Likes: 0
Received 0 Likes on 0 Posts
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.
Old 02 January 2001, 03:47 PM
  #9  
hooksin
Scooby Regular
Thread Starter
 
hooksin's Avatar
 
Join Date: Sep 2000
Posts: 132
Likes: 0
Received 0 Likes on 0 Posts
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.
Related Topics
Thread
Thread Starter
Forum
Replies
Last Post
Darrell@Scoobyworx
Trader Announcements
26
30 January 2024 01:27 PM
blackieblob
ScoobyNet General
4
01 October 2015 11:37 AM
alcazar
Non Scooby Related
37
27 September 2015 10:35 PM
StueyBII
General Technical
4
26 September 2015 12:35 PM



Quick Reply: DOS guru.....read-on



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