mIRC Homepage
Posted By: lonesome /rename filename too long? - 06/06/03 07:50 AM
/rename "E:\Masters of Classical Music\02 - Masters Of Classical Music - Vol 1 - Wolfgang Amadeus Mozart - Piano Concerto in A major, K 488 - Adagio.mp3" "E:\Masters of Classical Music\sprtmpmove\02 - Masters Of Classical Music Vol 1 - Wolfgang Amadeus Mozart - Piano Concerto in A major, K 488 - Adagio.mp3"

returns * /rename: invalid parameters

the file definately exists and i have absolutely no idea where the invalid parameter is.

making the new filename shorter, in this case changing from Wolfgang Amadeus Mozart to just Mozart,

/rename "E:\Masters of Classical Music\02 - Masters Of Classical Music - Vol 1 - Wolfgang Amadeus Mozart - Piano Concerto in A major, K 488 - Adagio.mp3" "E:\Masters of Classical Music\sprtmpmove\02 - Masters Of Classical Music Vol 1 - Mozart - Piano Concerto in A major, K 488 - Adagio.mp3"

* Renamed 'E:\Masters of Classical Music\02 - Masters Of Classical Music - Vol 1 - Wolfgang Amadeus Mozart - Piano Concerto in A major, K 488 - Adagio.mp3' to 'E:\Masters of Classical Music\sprtmpmove\02 - Masters Of Classical Music Vol 1 - Mozart - Piano Concerto in A major, K 488 - Adagio.mp3'

the file renames nicely. Is it a bug or is the length of the filename restricted intentionally?

btw, i'm using /rename to move the file into another folder. =)
Posted By: ScatMan Re: /rename filename too long? - 06/06/03 08:58 AM
it should work, cuz there is no limit for files, if it's not too long (more then 940 chars)
Posted By: Adrenalin Re: /rename filename too long? - 06/06/03 09:15 AM
Look if $shortfn(YourPat) return somethink .. If not .. I think is the mistake of the file name ..
Use //echo 1 $findfile(YourDir,*.mp3,0,echo $1-) to dir all the files ..
Posted By: ScatMan Re: /rename filename too long? - 06/06/03 09:30 AM
or just check if $isfile(yourfile) returns $true
Posted By: KingTomato Re: /rename filename too long? - 06/06/03 10:57 AM
Quote:

/rename "E:\Masters of Classical Music\02 - Masters Of Classical Music - Vol 1 - Wolfgang Amadeus Mozart - Piano Concerto in A major, K 488 - Adagio.mp3" "E:\Masters of Classical Music\sprtmpmove\02 - Masters Of Classical Music Vol 1 - Wolfgang Amadeus Mozart - Piano Concerto in A major, K 488 - Adagio.mp3"


Not sure if you realised, but you added a directory in there..

/rename "E:\Masters of Classical Music\02 - Masters Of Classical Music - Vol 1 - Wolfgang Amadeus Mozart - Piano Concerto in A major, K 488 - Adagio.mp3" "E:\Masters of Classical Music\sprtmpmove\02 - Masters Of Classical Music Vol 1 - Wolfgang Amadeus Mozart - Piano Concerto in A major, K 488 - Adagio.mp3"
Posted By: theRat Re: /rename filename too long? - 07/06/03 01:43 AM
KT:
/help /rename
/rename <filename> <newfilename>
Renames a file, can also be used to move a file from one directory to another.

Posted By: KingTomato Re: /rename filename too long? - 07/06/03 03:00 AM
I wasn't saying that was the proble, I was wondering if maybe he realised it was moved no a new folder..
Posted By: Nobodi Re: /rename filename too long? - 07/06/03 03:10 AM

Reading the last line in his post i would have said he did know.


Quote:

btw, i'm using /rename to move the file into another folder. =)
Posted By: lonesome Re: /rename filename too long? - 08/06/03 03:21 AM
yar. that's right. i know i was moving the file into a new folder. and if you realised, the 2nd example i quoted with a shorter filename worked! that's why i'm wondering if it's a bug or a feature made on purpose.. 'cause it's sort of breaking up the script everytime i have a loooooooooong filename like this.. crazy
Posted By: lonesome Re: /rename filename too long? - 08/06/03 03:22 AM
the file does exists.. so does the new folder.. smile
Posted By: zexr0 Re: /rename filename too long? - 09/06/03 02:51 AM
is there any problems with two spaces in filenames, I know I had problems before twith that ... Like this file name

C:\hello it's me.mp3

this will cause problems
i can't play rename of delete it with mirc ....
Posted By: Doqnach Re: /rename filename too long? - 10/06/03 04:01 PM
that problem might come from the quote you use in the filename (')
© mIRC Discussion Forums