Deleteing files through DOS

  Poloman69 17:57 07 May 2004

A while ago I had to delete some files through DOS as it said 'cannot delete file - currently in use by windows'

I cannot remember how to go through DOS to delete files individually.

Can anyone help to take me through step by step how to delete files from my C-Drive through DOS

  GaT7 18:02 07 May 2004

You don't mention which OS. To delete stubborn files/folders you could use the steps here - click here.

  Poloman69 18:12 07 May 2004

Sorry - using win98

  GaT7 18:24 07 May 2004

1. First make a note of the FULL path of the file(s) you want to delete. e.g., you want to delete a file called 'Accounts' which is on your desktop - the full path will be C:\WINDOWS\Desktop\Accounts.

2. Press Start -> Shut Down -> Restart in MS-Dos mode. OK.

3. In MS-Dos, at the command prompt, type "del C:\WINDOWS\Desktop\Accounts" (without the quotes) & press Enter.

  GaT7 18:39 07 May 2004

...type "del C:\WINDOWS\Desktop\Accounts"...

Posting again as you may not have seen the single space between del & C.

  woodchip 18:58 07 May 2004

You will on occasions have to use the CD switch meaning Change Directory. Not forgetting that if its in Program Files it is like this Progra~1

  alnwrd 20:40 07 May 2004

Once you're in DOS type cd \ this puts you in the root directory. To find the file you want type
dir "filename"/s The /s tells dos to search all sub directories. you can also add /p if the list scrolls off your screen. Then cd into the directory containing the file and type del "filename".

This thread is now locked and can not be replied to.

Elsewhere on IDG sites

The Evil Within 2 review-in-progress

Photoshop CC 2018 released with new Curvature Pen and better brush tools

Camera tips to take better iPhone photos

Les meilleures applications de covoiturage 2017