File - Get Information

This action returns information about a file.

Action ID:
Action Category:
Action List Syntax:

14
File 
<<VARIABLE>>
= File.GetInformation (<<INFORMATION>>, <<FILENAME>>)

Settings

File information to collect:

The type of information that will be stored in the variable. Choose from:

Version

-

Get the file version.

CRC Value

-

Calculate the file's CRC value.

Size

-

Get the size of the file in bytes.

Existence

-

Return "TRUE" if the file exists, and "FALSE" if it doesn't.

Short filename

-

Get the "8.3" version of the full path and filename for the file.

Variable name:

The variable that you want the information to be stored in.

Filename:

The full path and filename of the file.

Error Codes

Value
(%LastErrorNum%)

Simple Message
(%LastErrorMsg%)

Verbose Message
(%LastErrorDetails%)

0 (OK)

 

 

1

MSG_ERR_READ_FILE_INFO

MSG_ERR_READ_FILE_INFO
MSG_ERR_READ_VER
<<FILENAME>>

2

MSG_ERR_READ_FILE_INFO

MSG_ERR_READ_FILE_INFO
MSG_ERR_READ_CRC
<<FILENAME>>

3

MSG_ERR_READ_FILE_INFO

MSG_ERR_READ_FILE_INFO
MSG_ERR_READ_SIZE
<<FILENAME>>

4

MSG_ERR_READ_FILE_INFO

MSG_ERR_READ_FILE_INFO
MSG_ERR_FILE_NOT_FOUND
<<FILENAME>>

5

MSG_ERR_READ_FILE_INFO

MSG_ERR_READ_FILE_INFO
MSG_ERR_SHORT_FILE_NAME
<<FILENAME>>

Examples

Getting the version of Acrobat that is installed