ftp GET FILE SIZE - < ftp_filesize >() ... [Pro]
ftp GET FILE SIZE <ftp_filesize>("Variable for result","Remote file","Login name","Password","Silent") Available in: Professional edition
|
This command retrieves size of a file on a remote FTP server.
|
#
|
Parameter name
|
Parameter description
|
1
|
Variable for result
|
Variable that receives file size in bytes.
|
2
|
Remote file
|
Full path to the remote file (e.g., ftp://pitrinec.com/pub/test.txt).
|
3
|
Login name
|
User login name. If empty the "anonymous" is considered.
|
4
|
Password
|
User name login password.
|
5
|
Silent
|
Silent mode. If set to 1 then the operation progress window is not displayed.
|
|
|
Example (Macro Steps):
|
1
|
<#> <#> This sample retrieves size of file placed on remote FTP server
|
2
|
<#> <#>
|
3
|
Macro execution: ONLY COMMANDS
|
4
|
ftp GET FILE SIZE Variable for result=vFileSize, Remote file=ftp://pitrinec.com/pub/test.txt, Login name=
|
5
|
Message SHOW "" : "Size of "ftp://pitrinec.com/pub/test.txt" file is %vFileSize% bytes." (other parameters: x = -100, y = -100, Window title = Message, Buttons = OK, Timeout (seconds) = , Always on top = ).
|
|
Example (Plain Text):
<#> This sample retrieves size of file placed on remote FTP server
<#>
<cmds>
<ftp_filesize>("vFileSize","ftp://pitrinec.com/pub/test.txt","","")
<msg>(-100,-100,"Size of %_vQuoteChar%ftp://pitrinec.com/pub/test.txt%_vQuoteChar% file is %vFileSize% bytes.","Message",1)