|
KoRn18
|
KoRn18
|
Is there a way to move mp3 files from different directorys, within one directory (/music/) like move files from /music/A/Artist/Artist - song.mp3 to /music/Artist - song.mp3?
i have alot of files within many directoies and if i could move them automajically that would be nice.
|
|
|
|
KoRn18
|
KoRn18
|
thanks, but i still would have to manually type the files names, which is worse than cut&pasting the actuall files. is there a way i can move them like search and move the files?
|
|
|
|
pheonix
|
pheonix
|
yes, but it would be quite inaccurate, use at your own risk :tongue:
alias rfile { var %file $2- .echo -q $findfile(C:\,$+(*,$1,*,.,*),0,rename $1- $+(",%file,")) }
/rfile <part of file name> <your new file name> e.g: /rfile he c:\program files\hello would move every accessable file on your c drive with "he" in the file name to: c:\program files\hello
Last edited by pheonix; 18/08/03 05:32 PM.
|
|
|
|
KoRn18
|
KoRn18
|
so if i do it like this then it will only search my directory instead of the whole drive?
alias rfile { var %file $2- .echo -q $findfile(C:\media\,$+(*,$1,*,.,*),0,rename $1- $+(",%file,")) } and then: /rfile *.MP3 c:\media ?
|
|
|
|
pheonix
|
pheonix
|
ill change it :tongue:
alias rmp3 { var %file $2- .echo -q $findfile(c:\,*.mp3,0,rename $1- $+(",%file,")) } now just type: /rmp3 <your new file path>
that will find every mp3 on your c drive and move to a path you specify, dont change the code without asking someone who knows $findfile 1st otherwise you could do something terrible.
|
|
|
|
KoRn18
|
KoRn18
|
i dont want to move all mp3s on the drive...just in C:\media\
|
|
|
|
pheonix
|
pheonix
|
alias rmp3 { var %file $2- .echo -q $findfile(c:\media,*.mp3,0,rename $1- $+(",%file,")) } /rmp3 <your new file path>
|
|
|
|
KoRn18
|
KoRn18
|
Thank you but before i try this, its not going to currupt will it?
|
|
|
|
Joined: Feb 2003
Posts: 3,412
Hoopy frood
|
Hoopy frood
Joined: Feb 2003
Posts: 3,412 |
Allways try on a file you dont care about.. so make a copy on that file befor try the script
|
|
|
|
pheonix
|
pheonix
|
that code shouldnt go wrong, but like i said before: i take no responsibility for anything i give on here, ive tested that code and it went fine....,but i cant guarantee anything, entirely your decision about using it, should be fine though.
|
|
|
|
KoRn18
|
KoRn18
|
well i cant back up my entire collection, and if i try it on one, and it is fine, will the rest be fine?
|
|
|
|
Joined: Feb 2003
Posts: 3,412
Hoopy frood
|
Hoopy frood
Joined: Feb 2003
Posts: 3,412 |
If it works on 1.. why should it harm another if you trying.. but as allways its nothing that say somthing cant go wrong.. as with any program you using.. even windows have its faults and can destroy data somtimes.. (data = files)
|
|
|
|
KoRn18
|
KoRn18
|
well i tried it and i got a flood of similar to this:
* /rename: no such file 'c:\indigoperl\apache\htdocs\media\music\Other\V\Vanilla'
|
|
|
|
pheonix
|
pheonix
|
try this:\
alias rmp3 { var %file $2- .echo -q $findfile(c:\media,*.mp3,0,rename $+(",$1-,") $+(",%file,")) }
|
|
|
|
KoRn18
|
KoRn18
|
it said invalid paremeters for /rename
|
|
|
|
KoRn18
|
KoRn18
|
i even moved my music directory all the way down to C:\music and i get renam invalid paremeters
|
|
|
|
KoRn18
|
KoRn18
|
i think im going to use windows find files and get them all listed there and just move them manually...this snippet isnt working for me... Thank you all for your time
|
|
|
|
Joined: Dec 2002
Posts: 1,253
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 1,253 |
alias move.mp3 {
var %dir = $$1-
if ($right($1,1) != \) %dir = %dir $+ \
echo $color(info) -ati * Moved $&
$findfile(C:\Media\,*.mp3,0,.rename $+(",$1-,") $+(",%dir,$nopath($1-),")) $&
mp3s from C:\Media\ to %dir $+ .
} /move.mp3 C:\Music\MP3s I Love\
|
|
|
|
|