mIRC Home    About    Download    Register    News    Help

Print Thread
#1132 11/12/02 09:05 PM
L
Larra
Larra
L
It is impossible to handle files containing double spaces with findfile, ie:
echo -s $shortfn($findifle(c:\,*.ini,1,1)) -> c:\AAAAAA~1.INI

var %a = $findifle(c:\,*.ini,1,1, echo -s $shortfn($1-)) -> c:\aaa aaa.ini

create c:\aaa__aaa.ini (_ are spaces)

alias bug {
echo -s $shortfn($findfile(c:\,a*.ini,1,1))
var %a = $findfile(c:\,a*.ini,1,1, echo -s $shortfn($1-))
}

So I have to perform a $findfile(....,%i,1) loop instead of $findfile(......,0,1,command_here)
frown

#1133 11/12/02 09:12 PM
Joined: Dec 2002
Posts: 103
P
Vogon poet
Offline
Vogon poet
P
Joined: Dec 2002
Posts: 103
This is a known issue with spaces.

Use $findfile().shortfn ...

HTH smile

#1134 12/12/02 12:40 AM
L
Larra
Larra
L
thanks wink

#1135 12/12/02 06:29 AM
Joined: Dec 2002
Posts: 580
N
Fjord artisan
Offline
Fjord artisan
N
Joined: Dec 2002
Posts: 580
There has got to be a way to fix this... via scripts...

I've noticed it, everyone has noticed it...

What about something using bwrite and bset... Ideas anyone?

NaquadaServ


Link Copied to Clipboard