Difference between revisions of "$file"

From Scriptwiki
Jump to: navigation, search
m (added page)
 
m (added categories)
 
Line 11: Line 11:
 
  $file(mirc.exe).longfn   returns long version of short filename
 
  $file(mirc.exe).longfn   returns long version of short filename
 
  $file(mirc.exe).attr   returns file's attributes
 
  $file(mirc.exe).attr   returns file's attributes
 +
 +
[[Category:Identifiers]]
 +
[[Category:File and Directory Identifiers]]

Latest revision as of 11:03, 2 July 2007

$file(filename)
Properties: size, ctime, mtime, atime, shortfn, longfn, attr

Returns information about the specified file.

$file(mirc.exe).size	  returns the file size (default if no property is specified)
$file(mirc.exe).ctime	  returns creation time
$file(mirc.exe).mtime	  returns last modification time
$file(mirc.exe).atime	  returns last access time
$file(mirc.exe).shortfn	  returns short version of long filename
$file(mirc.exe).longfn	  returns long version of short filename
$file(mirc.exe).attr	  returns file's attributes