Xftp Command Line Parameters

These are parameters you can use with commands when running Xftp from the command prompt.


Option, Parameter

Description

“session file”

Runs the session file. "session file" can contain a path. There is no need to include the session file's extension.

-folder “session folder”

Runs all session in the "session folder"

-url [protocol://][user[:password]@]host[:port]

Connects by using the entered URL instead of a saved session file. Available protocols are SFTP and FTP. 

If utilizing SSH, TELNET, RLOGIN, Xshell will be called and terminal will open.

If no protocol is specified, FTP will be utilized.

If either 'user' or 'password' is not specified, you will be prompted to authenticate.

If no port is specified, the connection protocol's default port will be utilized.

-prop “session file”

Opens the session file's Session Properties dialog box."session file" can contain a path

-create “session file”

Creates a new session called "session file" and opens its properties. Ends when property settings are completed.

-newwin

Opens a new Xftp window.

-L “folder path”

Connects to the local "folder path"


Values in [] are non-mandatory values. If not entered, default values will be used or the user will be prompted for required information.

As an example, suppose we would like to use the SFTP protocol, the server is 192.168.10.100, the account is admin, and the passwords is passwd. We can utilize the following command and parameters:

xftp -url sftp://admin:passwd@192.168.10.100


In the above case, the session will open in the currently open Xftp window in the window which last had focus.


To open in a new window, you can utilize the "-newwin" parameter.

xftp -newwin sftp://admin:passwd@192.168.10.100