- GETTING STARTED
- Server connection
- File Transfer
- Directory operations
- File operations
- Script output
Advanced topics and rare features
This help topic documents some rare and not very commonly used ScriptFTP features. Some users may find them useful and eventually, if any become popular, they may get its own help topic.
ScriptFTP.exe command line options
The syntax of ScriptFTP.exe is the following:
ScriptFTP.exe <script_file_path> [custom parameter | /AUTOCLOSE | /HIDE | /TRAY] [custom parameter].....[custom parameter]
It's very similar to the syntax of scriptftp_console.exe shown on this topic, but you can also use /TRAY, /HIDE or /AUTOCLOSE in the second parameter to change the way ScriptFTP starts or closes:
- /AUTOCLOSE Closes ScriptFTP automatically once the script finishes
- /HIDE Starts ScriptFTP as a background process. No window is shown.
- /TRAY Starts ScriptFTP as a tray icon.
Added in ScriptFTP 3.1. The command CHR() can be used to get a character from its ASCII value. For example:
# It should print:
$string = "abc".CHR(13)."def"
Operations with dates
Added in ScriptFTP 3.1.
# Get the current date in the format AAAA_MM_DD-hh_mm_ss
# Then, you can substract or add seconds to that date stored
# in the variable. Yesterday is:
# (3600*60*60) is the amount in seconds in a day.
# This shold print the yesterday date:
Transfered files counter
Added in ScriptFTP 3.1 as GETTRANSFEREDFILESCOUNT (one R, misspelled).
Changed command name to GETTRANSFERREDFILESCOUNT (two R) in ScriptFTP 3.2.
Stop file logging
# This script logs only the download process
# it used the STOPLOG command to stop any
# further logging