mIRC Homepage

$findfile property use.

Posted By: LittleJohn

$findfile property use. - 05/10/08 09:31 PM

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

//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

Posted By: Strider

Re: $findfile property use. - 05/10/08 09:37 PM

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.
Posted By: RusselB

Re: $findfile property use. - 05/10/08 10:44 PM

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.
© 2021 mIRC Discussion Forums