Get file information
New in 2021!   Eonza automation software - free, open source cross-platform automation software for easy creation and management of scripts.

Get file information

Gets information ( size, time, attributes etc.) about the specified file.

Description
Optionally, you may add comments here describing the purpose of this element.
Filename
Specify the filename you want to get information about.
Variable name
The name of the variable the information will be written to. This command specifies some variables with different postfix and assign them the according information.
There are the following result variables:

Variable nameDescription
[var] The full name of the file.
[var]size The size of the file.
[var]exist Equals 1 if the file exists.
[var]used Equals 1 if the file is used by another process.
[var]write Equals 1 if the file can be opened and written.
[var]dir Equals 1 if it is a folder.
[var]readonly Equals 1 if there is Read only attribute.
[var]hidden Equals 1 if there is Hidden attribute.
[var]system Equals 1 if there is System attribute.
[var]archive Equals 1 if there is Archive attribute.
[var]ctime The creation date and time as a string.
[var]atime The last access date and time as a string.
[var]wtime The last write date and time as a string.
[var]swtime The last write date and time as SSMMHHDDMMYYYY.
[var]year Year of the last modification.
[var]month Month of the last modification.
[var]day Day of the last modification.
[var]hour Hour of the last modification.
[var]minute Minute of the last modification.
[var]second Second of the last modification.

Example, if you specified variable name as fi then

#fisize# - the size of the file 
#fiwtime# - the date and time of the last modification