The FileSize command allows the user to check the size of a file if the file is less than 2,147,483,647 bytes. If the file size is larger than 2,147,483,647 bytes, than the FileSize command returns a -2. If a -1 is returned, the file does not exist. If a 0 is returned, the file has zero bytes.
You can use this command to determine when a file has been completely transferred to another server. To determine when a file (less than 2,147,483,647 bytes) has completed transferred, use these steps to write a script:
Store the return value in a Count variable such as Count-1.
Wait a period of time.
Check the file size again.
Store that returned value in another Count variable such as Count-2.
Compare Count-1 and Count-2.
If Count-1 does not equal Count-2 then the file is still in the process of being transferred. If Count-1 does equal Count-2 then the file has finished being transferred.
The following parameter can be defined from this window.
Field |
Description |
---|---|
Label |
Specifies the unique label of this process command. This label allows other commands to branch to this command. The label that you type here appears in the Label column on the EC Gateway Process Window. |
Disable command |
Disabling the command will allow temporary modification of the process statements. This allows for testing of the statements for error-free robustness. The command that has been disabled will not show in the script file (.pfs file). |
File Name |
Name of the file to be tested. You can select a file from a list of files by clicking the arrow icon beside this field. There are two choices: FileName, and Constant… will open the Browse – Select a File window. |