mIRC Home    About    Download    Register    News    Help

Print Thread
#70152 03/02/04 09:01 AM
Joined: Oct 2003
Posts: 37
B
Ameglian cow
OP Offline
Ameglian cow
B
Joined: Oct 2003
Posts: 37
Anyone know of a way to workaround the line length limit when using rename? Like, is there a dll I could use? Or is there a way to use short filenames or something?

-eMpTy

Joined: Mar 2003
Posts: 1,271
L
Hoopy frood
Offline
Hoopy frood
L
Joined: Mar 2003
Posts: 1,271
If the line is too long, you will have to shorten it. But I have trouble understanding how you could hit well over 900 characters with a filepath......


DALnet #Helpdesk
I hear and I forget. I see and I remember. I do and I understand. -Confucius
Joined: Sep 2003
Posts: 4,230
D
Hoopy frood
Offline
Hoopy frood
D
Joined: Sep 2003
Posts: 4,230
im assuming your using paths, which are making it to long a line (althought i didnt think 2 path/filenames could be that long) but anyway

try renaming the file to the "c:\temphold.fil"
then renaming "c:\temphold.fil" it to its destination name

PS: your not using $& in this line are you i discovered if you have alot of white spaces, in a line the line can fail becuase its too long.

Joined: Dec 2002
Posts: 1,922
O
Hoopy frood
Offline
Hoopy frood
O
Joined: Dec 2002
Posts: 1,922
Or use $shortfn() around the file names e.g. //rename $shortfn(c:\my long dir\my long file.gif) $shortfn(d:\my long destination\etc\file.gif)

Joined: Sep 2003
Posts: 4,230
D
Hoopy frood
Offline
Hoopy frood
D
Joined: Sep 2003
Posts: 4,230
if the lines to long already, that might (MIGHT) make it worse, having even more text on it, i guess it depends on order of translastion of the parts of the line.

Joined: Dec 2002
Posts: 1,922
O
Hoopy frood
Offline
Hoopy frood
O
Joined: Dec 2002
Posts: 1,922
Anything that makes the final product (i.e. file names) shorter would help.

Joined: Aug 2003
Posts: 1,831
I
Hoopy frood
Offline
Hoopy frood
I
Joined: Aug 2003
Posts: 1,831
or a combination, which allows for "long file name.ext"
//rename $shortfn(c:\my long dir\my long file.gif) $+(",$shortfn(d:\my long destination\etc\),long file name.gif,")

Joined: Oct 2003
Posts: 37
B
Ameglian cow
OP Offline
Ameglian cow
B
Joined: Oct 2003
Posts: 37
I like this last idea...I'll give it a go...thanks for the help all...

-eMpTy


Link Copied to Clipboard