Name: ryry1283 Date: November 12, 2005 at 18:08:52 Pacific Subject: using DOS to delete a folder OS: Windows ME CPU/Ram: 320 MB
Comment:
I am trying to force a folder to delete. Here's the story:
I was copying a folder with music in it from one directory to another. And from time to time, when I do this, my PC will freeze. This time, it froze and the contents inside the folder were all jumbled up. the filenames and contents of the actual songs is beyond repair. So I'm looking to just delete the folder, re-rip the CD and be on my merry little way.
So what I'm asking is: How do you delete a directory in DOS. By the way, when I open the DOS prompt, I'm stuck on the C: drive. How do I get to the H: drive (where my music is kept)? All help is greatly appreciated.
To navigate to another drive, merely enter it - in this case
H:
To remove a directory in DOS, couple of ways, but the simplest would be deltree
deltree H:\yourfolder
That should remove the directory and its contents, including any subfolders - be careful, as files deleted this way bypass the recycle bin. You'll be asked to confirm the deletion
Resist the temptation to close your request for help with semantically-null questions like “Can anyone help me?”
I get an error message: Error Deleting File or Folder
And it says: Cannot delete file: Windows is unable to find the file. This item might have already been deleted or moved. Press F5 to refresh the view of this folder.
Also... if the folder has a long filename (greater than 8 characters) or contains spaces, DOS may require you to enclose the name in "quotes" - for example
deltree "H:\my favourite music files"
Resist the temptation to close your request for help with semantically-null questions like “Can anyone help me?”
The information on Computing.Net is the opinions of its users. Such
opinions may not be accurate and they are to be used at your own risk.
Computing.Net cannot verify the validity of the statements made on this site. Computing.Net and Computing.Net, LLC hereby disclaim all responsibility and liability for the content of Computing.Net and its accuracy.
PLEASE READ THE FULL DISCLAIMER AND LEGAL TERMS BY CLICKING HERE