logo Put upload a file to the host computer

 

Return to Introduction     

put [path]filename

 

Where:

 

path(optional) is the path from the current folder. The path is honored on your local drive and the remote host. For example, "put folder/subfolder/test.txt" will look in current_folder/folder/subfolder/ to find text.txt  and it will upload text.txt to  current_folder/folder/subfolder/ on the remote host.

 

 

filenameis the name of the file to be transmitted to the remote host computer. The filename and path must be enclosed in double quotes if either contains a space.  For example:

 

put "\subfolder\read me.txt"

 

Return Codes:

 

550You do not have the appropriate permissions to upload a file to the current folder on the  host.

 

Examples:

 

put test.txt

put readme.txt

put "read me.txt"

put "\folder\read me.txt"

 

Sample Script:

 

* Sample script using the "put" command

* Allow the upload to replace and existing file on the host without a prompt

set replace_remote on

* Upload test.txt

put test.txt