mIRC Home    About    Download    Register    News    Help

Print Thread
/rename filename too long? #28422 06/06/03 07:50 AM
Joined: Dec 2002
Posts: 62
lonesome Offline OP
Babel fish
OP Offline
Babel fish
Joined: Dec 2002
Posts: 62
/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. =)

Re: /rename filename too long? #28423 06/06/03 08:58 AM
Joined: May 2003
Posts: 730
S
ScatMan Offline
Hoopy frood
Offline
Hoopy frood
S
Joined: May 2003
Posts: 730
it should work, cuz there is no limit for files, if it's not too long (more then 940 chars)

Re: /rename filename too long? #28424 06/06/03 09:15 AM
Joined: Apr 2003
Posts: 414
Adrenalin Offline
Fjord artisan
Offline
Fjord artisan
Joined: Apr 2003
Posts: 414
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 ..


mIRC Chm Help 6.16.0.3 Full Anchored!
Re: /rename filename too long? #28425 06/06/03 09:30 AM
Joined: May 2003
Posts: 730
S
ScatMan Offline
Hoopy frood
Offline
Hoopy frood
S
Joined: May 2003
Posts: 730
or just check if $isfile(yourfile) returns $true

Re: /rename filename too long? #28426 06/06/03 10:57 AM
Joined: Jan 2003
Posts: 3,012
KingTomato Offline
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2003
Posts: 3,012
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"


-KingTomato
Re: /rename filename too long? #28427 07/06/03 01:43 AM
Joined: Dec 2002
Posts: 774
T
theRat Offline
Hoopy frood
Offline
Hoopy frood
T
Joined: Dec 2002
Posts: 774
KT:
/help /rename
/rename <filename> <newfilename>
Renames a file, can also be used to move a file from one directory to another.



Code:
//if ( khaled isgod ) echo yes | else echo no
Re: /rename filename too long? #28428 07/06/03 03:00 AM
Joined: Jan 2003
Posts: 3,012
KingTomato Offline
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2003
Posts: 3,012
I wasn't saying that was the proble, I was wondering if maybe he realised it was moved no a new folder..


-KingTomato
Re: /rename filename too long? #28429 07/06/03 03:10 AM
Joined: Dec 2002
Posts: 191
N
Nobodi Offline
Vogon poet
Offline
Vogon poet
N
Joined: Dec 2002
Posts: 191

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. =)

Re: /rename filename too long? #28430 08/06/03 03:21 AM
Joined: Dec 2002
Posts: 62
lonesome Offline OP
Babel fish
OP Offline
Babel fish
Joined: Dec 2002
Posts: 62
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

Re: /rename filename too long? #28431 08/06/03 03:22 AM
Joined: Dec 2002
Posts: 62
lonesome Offline OP
Babel fish
OP Offline
Babel fish
Joined: Dec 2002
Posts: 62
the file does exists.. so does the new folder.. smile

Re: /rename filename too long? #28432 09/06/03 02:51 AM
Joined: Jun 2003
Posts: 2
Z
zexr0 Offline
Bowl of petunias
Offline
Bowl of petunias
Z
Joined: Jun 2003
Posts: 2
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 ....

Re: /rename filename too long? #28433 10/06/03 04:01 PM
Joined: Jan 2003
Posts: 1,063
D
Doqnach Offline
Hoopy frood
Offline
Hoopy frood
D
Joined: Jan 2003
Posts: 1,063
that problem might come from the quote you use in the filename (')


If it ain't broken, don't fix it!