Sample scripts are provided as-is with no warranty of fitness for a particular purpose. These scripts are solely intended to demonstrate techniques for accomplishing common tasks. Additional script logic and error-handling may need to be added to achieve the desired results in your specific environment.
build_file_name.s
This script demonstrates some of Robo-FTP's string manipulation commands.
1 SET date = %date
2 SETLEFT month = date 2
3 SETMID day = date 2 4
4 SETRIGHT temp = date 2
5 SET year = "20"
6 SET year &= temp
7 SET filedate = month
8 SET filedate &= day
9 SET filedate &= year
10 DISPLAY filedate
11 SET filename = "TestFile_"
12 SET filename &= filedate
13 SET filename &= ".txt"
14 DISPLAY filename

