mIRC Home    About    Download    Register    News    Help

Print Thread
#103240 18/11/04 11:59 AM
Joined: Mar 2003
Posts: 612
B
Fjord artisan
OP Offline
Fjord artisan
B
Joined: Mar 2003
Posts: 612
both variables are set using $sdir and $findfile(1 dir deep) in the following, so the files do exist!!
Code:
    rename $+( " , %rn.folder $+ %rn.oldfile , " ) $+( " , %rn.folder $+ %rn.newfile , " )
  

i'm getting a no such file error on 'some' files, seemingly only ones with spaces I think....
* /rename: no such file 'E:\mp3(2)\(Everything I Do) I Do It For You.mp3' (line 185, renamer.txt)
what's up with this? Any ideas? The file is definately there the script finds it itself and I have manually made sure. Works on other files though.


billythekid
Joined: Nov 2003
Posts: 2,327
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Nov 2003
Posts: 2,327
Check if the file has multiple spaces in it, if it doesn't, try typing:

Code:
//echo -a $isfile(E:\mp3(2)\(Everything I Do) I Do It For You.mp3)


New username: hixxy
Joined: Mar 2003
Posts: 612
B
Fjord artisan
OP Offline
Fjord artisan
B
Joined: Mar 2003
Posts: 612
ok even more bizarrely, i checked for multiple spaces, none found, and the $isfile was false. I just played it in winamp to check i wasnt seeing things and i heard the song!(just a second of it before i felt queezy)


billythekid
Joined: Mar 2004
Posts: 175
Vogon poet
Offline
Vogon poet
Joined: Mar 2004
Posts: 175
Code:
rename $Shortfn($+(%rn.folder,%rn.oldfile)) $Shortfn($+(%rn.folder,%rn.newfile))


- Relinsquish
Joined: Mar 2003
Posts: 612
B
Fjord artisan
OP Offline
Fjord artisan
B
Joined: Mar 2003
Posts: 612
thanks for that suggestion too Relinsquish, but that returns
Quote:
* /rename: no such file 'E:\mp3(2)\(Everything' (line 185, renamer.txt)


billythekid
Joined: Mar 2003
Posts: 612
B
Fjord artisan
OP Offline
Fjord artisan
B
Joined: Mar 2003
Posts: 612
Got it all fixed, thanks for your input guys. Turned out to be a lead space in the filename instead of E:/mp3(2)/(everyt.... it was E:/mp3(2)/ (everyt......
Thanks again. laugh


billythekid

Link Copied to Clipboard