Quote:
but mirc6.17 always return longfilename...


I hate how people just say "but" and dont even check in anyway what there saying....

Becuase you are incorrect. mirc6.17 might have for the times you ran it always returned long file paths, but it does NOT always return long file paths.

C:\Program Files\mIRC617>mirc.exe & //echo -a $mircdir
C:\Program Files\mIRC617\

C:\PROGRA~1\mIRC617>mirc.exe & //echo -a $mircdir
C:\PROGRA~1\mIRC617\