mIRC Home    About    Download    Register    News    Help

Print Thread
#204913 05/10/08 09:31 PM
Joined: Jul 2004
Posts: 59
L
Babel fish
OP Offline
Babel fish
L
Joined: Jul 2004
Posts: 59
Hello I am trying to figure out how to use the shortfn property of findfile as listed in the help file.

I have tried the below:

//echo -s $findfile($mircdirSettings\Journal\2008\January\,*.txt,1,).shortfn

Returns: C:\mirc\Settings\Journal\2008\January\12.txt

and
//echo -s $findfile($mircdirSettings\Journal\2008\January\,*.txt,1,)shortfn

which Returns: C:\mirc\Settings\Journal\2008\January\12.txt

So no luck there. I know I am missing something but cant figure out what. any help would be welcomed.

I did read the Help and didnt see where this function is specified.

$findfile(dir,wildcard,N,depth,@window | command)

Searches the specified directory and its subdirectories for the Nth filename matching the wildcard file specification and returns the full path and filename if it is found.

Properties: shortfn


Joined: Dec 2002
Posts: 155
S
Vogon poet
Offline
Vogon poet
S
Joined: Dec 2002
Posts: 155
You won't see the difference between calling the identifier with or without that modifier (because it's more of a modifier than a property) with that file. Try using the modifier with files that contain spaces in their path, and you'll see.

Joined: Aug 2004
Posts: 7,252
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
Alternatively, other than spaces, you would also see the difference if one or more of the paths or the file name had more than 8 characters.


Link Copied to Clipboard