mIRC Home    About    Download    Register    News    Help

Print Thread
#227056 23/10/10 04:41 PM
Joined: Nov 2009
Posts: 81
V
Voglea Offline OP
Babel fish
OP Offline
Babel fish
V
Joined: Nov 2009
Posts: 81
When path is too long - mirc resets it to $mircdir

//return $findfile($+(C:\,$str(z,4096)),*,0,0,echo -a $1-)

returns files from $mircdir

Joined: Aug 2004
Posts: 7,252
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
and just where do you think mIRC should be returning it to under those circumstances?

Joined: Jun 2007
Posts: 933
5
Hoopy frood
Offline
Hoopy frood
5
Joined: Jun 2007
Posts: 933
The whole 4096 limit is a bit odd, since in Windows environments the limit is generally 260 chars for the full path length.
MSDN - Maximum Path Length Limitation

Joined: Aug 2004
Posts: 7,252
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
My question still stands, irrelevant as to what the actual length of the path is, so long as it exceeds whatever the maximum length happens to be.

Joined: Sep 2005
Posts: 2,881
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Sep 2005
Posts: 2,881
It should fail with an exceeds max path error. Returning files from a folder other than the one specified, even if that folder is an invalid one, is clearly not desireable.

Joined: Apr 2003
Posts: 342
M
Fjord artisan
Offline
Fjord artisan
M
Joined: Apr 2003
Posts: 342
Actually I beleive mIRC ignores paths longer than 260 characters. This error is the result of mIRC's 4KB limit on string length.


Beware of MeStinkBAD! He knows more than he actually does!

Link Copied to Clipboard