Alternate Default File Paths for Select Commands
<< Click to Display Table of Contents >> Navigation: Robo-FTP User's Guide > Script Programming > Select Topics in Script Programming > Alternate Default File Paths for Select Commands |
Robo-FTP 3.8 and later versions include several changes designed to make it easier to replicate an entire working Robo-FTP installation to other computers. One of the challenges faced when transferring an installation is modifying command scripts to change hard-coded file paths. Several script commands now support extended search paths so you can omit the hard-coded paths and still be confident that your files will be found regardless of the current working folder.
The CALL, CHAIN and CRON commands use five alternate paths for maximum compatibility with previous versions of Robo-FTP. These paths are searched in the following order:
1.The current working directory.
2.The folder containing the currently executing command script.
3.< Installation Folder >\UserData\< Username >\< Namespace >
4.< Installation Folder >\ProgramData\< Namespace >
5.< Installation Folder >
The AUDITDB, DBUSE, DIFF, GETDIFF, FTPDIFF, FTPGETDIFF, LOG, SESSIONLOG and TRACELOG commands use this path under the program installation folder:
< Installation Folder >\ProgramData\< Namespace >
...unless the current instance of Robo-FTP lacks the necessary Windows permission to write to that location, in which case the following path is used instead:
< Installation Folder >\UserData\< Username >\< Namespace >
For the purposes of the alternate paths discussed in this topic:
•< Username > is the username for the current Windows user.
•< Installation Folder > is the directory where Robo-FTP is installed. Non-administrative users may not have permission to create files in this folder.
•Robo-FTP X.X is the major and minor release number separated by a period, for example Robo-FTP 3.10.
•A < Namespace > is a collection of related data. When Robo-FTP resolves a Namespace to find a file, the full path and file name are written to the Trace Log.
➢Scripts is used by the CALL and CHAIN commands
➢SQLCE is used by the DBUSE command
➢SQLite is used by the AUDITDB and DBUSE commands
➢Cron is used by the CRON command
➢Snapshot is used by the DIFF, GETDIFF, FTPDIFF and FTPGETDIFF commands
➢Logs is used by the LOG, SESSIONLOG and TRACELOG commands
Namespace data files are automatically included in settings files generated by the EXPORT command or via the Export Settings option under the File Menu in the main console window.
See also: Moving to Another Computer