| 1. |
Solve : Deleting files in External Drive? |
|
Answer» I had been using an external drive to back up music and such. However, due to user ineptitude I allowed it to make multiple copies of each file, some of which have a .dcm file extension attached to them. Dealing only with my music folders, I would like to REMOVE all files except those which end in .wma and .jpg. I have a notion of where to start: I am (much) less sure of that, but right now, I can't seem to get out of the gate: when i try to switch directories, nothing happens. For example:Just type e: ( leave the cd out) Quote I had been using an external drive to back up music and such. However, due to user ineptitude I allowed it to make multiple copies of each file, some of which have a .dcm file extension attached to them. Dealing only with my music folders, I would like to remove all files except those which end in .wma and .jpg. I have a notion of where to start:I'm assuming you want to delete all file ending in .dcm with names such as e:\backup files\music\album1\allsongs.dcm,e:\backup files\music\album2\allsongs.dcm, etc.... Code: [Select]DEL "e:\backup files\music\*.dcm" /sWill remove all files under the music dir with the extension .dcm Quote After that I want to remove multiple copies of the same files, which appear as following:What kind of random date format do you have? If all of the files you want to delete end in 09.wma for example and you have no files you want to save ending in 09.wma you COULD use Code: [Select]del "e:\backup files\music\*09.wma" /s That will delete all files ending in 09.wma in all sub directories of music to change drives type the drive letter and a colon e.g. D: and then [ENTER] to change to a folder on a different drive use the cd command with the /d switch Say you are in "C:\My Folder\EggPlant" and you want to be in "E:\Music Files\Led Zeppelin" you could type either: E: [ENTER] cd "Music Files\Led Zeppelin" [ENTER] or just one line cd /d "E:\Music Files\Led Zeppelin" [ENTER] And you will now be in the folder on the other drive. If you now type C: and press ENTER, you will go back to the C: drive, to the same folder on that drive that you were in before. Thank you Salmon Trout and Crusin702 for the assistance, especially with such rookie questions. @Crusin702: The random dates do not consistently end in any digit. For example: .08 [emailprotected];42;59.wma However, all of the files consistently have an @ symbol included in them. I don't believe any of the song titles include that symbol, so is it possible to delete all files that include "@"? The code you provided for deleting files that .dcm does not seem to be working. It keeps telling me that it can't find the files (see the attachment) Thanks again! [Saving space, attachment deleted by admin]Quote from: kovan on December 25, 2009, 12:57:53 PM is it possible to delete all files that include "@"? del *@*Thanks Salmon Trout, that worked perfectly. I tried using that same trick to delete the .dcm files, but it still tells me that it can't find the files.In fact, none of the files ending in .dcm that contain an @ symbol were deleted either. Is it possible the software provided my memeo prevents these files from being located? Sounds as if what you actually saved is shortcuts to where the files used to be...I just did a quick search and it seems the .dcm files are created by the hd software for backup and restoration purposes. Have you tried to delete any of them using explorer? If you can delete them that way, maybe just run a search for .dcm and select all and delete them that way. |
|