mIRC Home    About    Download    Register    News    Help

Print Thread
#42747 18/08/03 05:11 PM
K
KoRn18
KoRn18
K
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.

#42748 18/08/03 05:14 PM
S
ScatMan
ScatMan
S
use /rename

#42749 18/08/03 05:18 PM
K
KoRn18
KoRn18
K
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? confused

#42750 18/08/03 05:28 PM
P
pheonix
pheonix
P
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.
#42751 18/08/03 05:32 PM
K
KoRn18
KoRn18
K
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 ?

#42752 18/08/03 05:36 PM
P
pheonix
pheonix
P
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.

#42753 18/08/03 05:41 PM
K
KoRn18
KoRn18
K
i dont want to move all mp3s on the drive...just in C:\media\

#42754 18/08/03 05:46 PM
P
pheonix
pheonix
P
alias rmp3 {
var %file $2-
.echo -q $findfile(c:\media,*.mp3,0,rename $1- $+(",%file,"))
}
/rmp3 <your new file path>

#42755 18/08/03 05:48 PM
K
KoRn18
KoRn18
K
Thank you but before i try this, its not going to currupt will it?

#42756 18/08/03 05:52 PM
Joined: Feb 2003
Posts: 3,412
S
Hoopy frood
Offline
Hoopy frood
S
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 smirk

#42757 18/08/03 05:53 PM
P
pheonix
pheonix
P
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.

#42758 18/08/03 05:53 PM
K
KoRn18
KoRn18
K
well i cant back up my entire collection, and if i try it on one, and it is fine, will the rest be fine?

#42759 18/08/03 05:55 PM
Joined: Feb 2003
Posts: 3,412
S
Hoopy frood
Offline
Hoopy frood
S
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) smirk

#42760 18/08/03 05:56 PM
K
KoRn18
KoRn18
K
well i tried it and i got a flood of similar to this:
Code:
* /rename: no such file 'c:\indigoperl\apache\htdocs\media\music\Other\V\Vanilla'

#42761 18/08/03 06:15 PM
P
pheonix
pheonix
P
try this:\

alias rmp3 {
var %file $2-
.echo -q $findfile(c:\media,*.mp3,0,rename $+(",$1-,") $+(",%file,"))
}

#42762 18/08/03 06:21 PM
K
KoRn18
KoRn18
K
it said invalid paremeters for /rename

#42763 18/08/03 06:26 PM
K
KoRn18
KoRn18
K
i even moved my music directory all the way down to C:\music and i get renam invalid paremeters

#42764 18/08/03 06:55 PM
K
KoRn18
KoRn18
K
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 wink

#42765 19/08/03 04:56 AM
Joined: Dec 2002
Posts: 1,253
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Dec 2002
Posts: 1,253
Code:

alias move.mp3 {
  var %dir = $$1-
  if ($right($1,1) != \) %dir = %dir $+ \
  echo $color(info) -ati * Moved $&amp;
    $findfile(C:\Media\,*.mp3,0,.rename $+(",$1-,") $+(",%dir,$nopath($1-),")) $&amp;
    mp3s from C:\Media\ to %dir $+ .
}

/move.mp3 C:\Music\MP3s I Love\


Link Copied to Clipboard