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:

E:\delete e:\backup files\music\*.dcm

All of the music is broken down into the respective album folders, but I am assuming right now that shouldn't matter (i.e. i don't have to specify each individual album folder)

After that I want to remove multiple copies of the same files, which appear as following:

songname.wma
songname_randomdate.wma
songname_anotherrandomdate.wma

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:

C:\ cd e:

lets me read e:\backup files

but then immediately changes back to c:\

C:\ chdir e: does the same thing.

If I type C:\DIR e: , I can see all the directories.

I am operating on Windows XP and my computer recognizes my external hard drive, which is a Memeo Passport.

Thanks for any help!Quote from: kovan on December 24, 2009, 04:40:06 PM

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:
C:\ cd e:
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:
E:\delete e:\backup files\music\*.dcm
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:

songname.wma
songname_randomdate.wma
songname_anotherrandomdate.wma
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.


Discussion

No Comment Found