FileGetProperty

From kwiki

Jump to: navigation, search
This article is written by Konrad, thus using rather nonstandard English:)

FileGetProperty (DNM Script function)

Contents

full declaration

some_var FileGetProperty (string sSrcPath,string sProperty)

return value

some_var

description

sProperty may be one of the following:

  • "mtime" : will return file/folder modification time.
  • "ctime" : will return file/folder creation time.
  • "atime" : will return file/folder last access time.
  • "size" : will return file size.

If function returns file size, the type will be int. In case of modification/creation/last access time it will be int too, and can be used with Date and time functions.

Examples

var $tm=FileGetProperty ("C:\\Windows","ctime");
MessageBox("Your 'windows' folder was created: "+TimeFormat($tm));


keywords: file get property folder size modification creation last access date time
Personal tools
konradp.com