Computer Hope

Microsoft => Microsoft DOS => Topic started by: InternJ on December 13, 2011, 03:08:05 PM

Title: does closing cmd window terminate the command running?
Post by: InternJ on December 13, 2011, 03:08:05 PM
does closing the cmd window currently running a del /f/s/q filepath
terminate the deletion process


i had it running by accident and needed to stop, in my panic i closed the cmd window
did that stop it?

also i disconnected myself from that drive
and shut down.

i know i lost some files because it was running very fast
but did i stop it when i closed it?
Title: Re: does closing cmd window terminate the command running?
Post by: Salmon Trout on December 13, 2011, 03:47:14 PM
When cmd.exe stops, so do any internal commands, and del is internal. You could have used CTRL + C.
Title: Re: does closing cmd window terminate the command running?
Post by: InternJ on December 13, 2011, 03:51:34 PM
thank you for responding , yes i forgot about cntr + c , i didnt keep my cool .

well thats a load off, i know it deleted some files but a few is better then the TB of data
Title: Re: does closing cmd window terminate the command running?
Post by: Salmon Trout on December 13, 2011, 11:53:13 PM
well thats a load off, i know it deleted some files but a few is better then the TB of data

Surely you know how to find how much data and how many files are left?