mIRC Home    About    Download    Register    News    Help

Print Thread
Identifier to get full pathname from $findfile/dir #174639 10/04/07 02:54 PM
Joined: Dec 2002
Posts: 2,962
S
starbucks_mafia Offline OP
Hoopy frood
OP Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 2,962
Quite simple really, I'd like an identifier internal to $findfile()/$finddir() which returns the entire pathname. The difference from $1- being that this would retain consecutive spaces, which $1- by it's design does not.

Before someone suggests using $findfile(...,$longfn($1)).shortfn I'll point out that this will fail on NTFS volumes with short filenames disabled.


Spelling mistakes, grammatical errors, and stupid comments are intentional.
Re: Identifier to get full pathname from $findfile [Re: starbucks_mafia] #174650 10/04/07 03:47 PM
Joined: Aug 2004
Posts: 7,252
R
RusselB Offline
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
Code:
echo -a $nofile($findfile())


This works for me, but I don't have any file/directory names with consecutive spaces.

Re: Identifier to get full pathname from $findfile [Re: RusselB] #174651 10/04/07 03:53 PM
Joined: Dec 2002
Posts: 2,962
S
starbucks_mafia Offline OP
Hoopy frood
OP Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 2,962
I just realised I wasn't very clear in my post. I mean an identifier to use in the <command> parameter of $findfile().

Also I'll clarify when I say the full pathname I mean the full filename for $findfile() and the full dirname for $finddir().


Spelling mistakes, grammatical errors, and stupid comments are intentional.