mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Dec 2002
Posts: 2,962
S
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.
Joined: Aug 2004
Posts: 7,252
R
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.

Joined: Dec 2002
Posts: 2,962
S
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.

Link Copied to Clipboard