Differences

This shows you the differences between the selected revisions of the page.

2005-01-05 2005-01-07
typo 'interupted' (martin) example script (193.179.225.19)
Line 16: Line 16:
As ''WinSCP3.exe'' is GUI application, it cannot inherit console window when run from other console application (like Windows command-prompt). To allow this, run WinSCP using console interface tool, ''WinSCP3.com''. As ''WinSCP3.exe'' is GUI application, it cannot inherit console window when run from other console application (like Windows command-prompt). To allow this, run WinSCP using console interface tool, ''WinSCP3.com''.
 +===== Example ===== 
 +The example below connects to ''example.com'' server with account ''user'', downloads file and closes the session. Then it connects to the same server with account ''user2'' and upload the file back.  
 +<code winscp> 
 +option batch on 
 +option confirm off 
 +open user@example.com 
 +cd /home/user 
 +option transfer binary 
 +get examplefile.txt d:\ 
 +close 
 +open user2@example.com 
 +cd /home/user2 
 +put d:\examplefile.txt  
 +close 
 +exit 
 +</code> 
 +Save the script to file ''example.txt''. To execute the script file use following command. As the script connects the session itself, using command ''open'', omit the ''session'' command-line parameter. 
 +<code> 
 +winscp3 /script=example.txt 
 +</code>

Last modified: by 193.179.225.19