Enter search queries below or use the tag links to the right to browse the knowledge base by category (Show All Tags).
I want to pass my FTPLOGON user name and password via command line arguments. How is this accomplished?
You can pass a user name and password externally into Robo-FTP. When doing this, the shortcut to launch Robo-FTP might look like this:
C:\Program Files\Robo-FTP\Robo-FTP.exe -p1 user -p2 pw
Robo-FTP 3.9 and later
Robo-FTP 3.9 and later supports using variables for script command options.
The script command based on the above command line would look like this:
FTPLOGON "ftp.myserver.com" /user=%1 pw=%2
Robo-FTP 3.8.x and earlier
The required options to the FTPLOGON
script command, /user
and /pw
, cannot be used with variables in Robo-FTP 3.8.x and earlier. Instead, use Robo-FTP SET command to build a complete command, and then use the PERFORM
command to run it. For example:
SET cmd = FTPLOGON "ftp.myserver.com" & " /user=" & %1 & " pw=" & %2
PERFORM cmd
Article last updated: 2021-03-15
Tags: FTPLOGON, Robo-FTP, Command Line