Differences
This shows you the differences between the selected revisions of the page.
2014-08-27 | 2014-09-11 | ||
batch file syntax highlighting (martin) | in-page anchored links without page name (martin) | ||
Line 10: | Line 10: | ||
^ Parameter ^ Conversion ^ | ^ Parameter ^ Conversion ^ | ||
- | | ''-n'' | There is no equivalent. In WinSCP all of hostname, username and password are specified using single command ''[[scriptcommand_open|open]]''. See also [[guide_ftp_script_to_sftp#credentials|converting credentials]] below. | | + | | ''-n'' | There is no equivalent. In WinSCP all of hostname, username and password are specified using single command ''[[scriptcommand_open|open]]''. See also [[#credentials|converting credentials]] below. | |
| ''-i'' | WinSCP does not prompt for individual transfers during multi-file transfers, so there's no conversion needed. | | | ''-i'' | WinSCP does not prompt for individual transfers during multi-file transfers, so there's no conversion needed. | | ||
| ''-d'' | Enable [[logging|session logging]] using ''/log=<logfile>'' parameter. | | | ''-d'' | Enable [[logging|session logging]] using ''/log=<logfile>'' parameter. | | ||
Line 70: | Line 70: | ||
</code> | </code> | ||
- | For ''option'' commands, see [[guide_ftp_script_to_sftp#batch|above]]. | + | For ''option'' commands, see [[#batch|above]]. |
===== Converting Commands ===== | ===== Converting Commands ===== | ||
Line 141: | Line 141: | ||
Use ''[[scriptcommand_get|get]]'' command. | Use ''[[scriptcommand_get|get]]'' command. | ||
- | You need to map previous ''[[guide_ftp_script_to_sftp#binary|binary]]'' or ''[[guide_ftp_script_to_sftp#ascii|ascii]]'' commands to ''-transfer'' switch. | + | You need to map previous ''[[#binary|binary]]'' or ''[[#ascii|ascii]]'' commands to ''-transfer'' switch. |
Example: | Example: | ||
Line 181: | Line 181: | ||
Use ''[[scriptcommand_get|get]]'' command. | Use ''[[scriptcommand_get|get]]'' command. | ||
- | You need to map previous ''[[guide_ftp_script_to_sftp#binary|binary]]'' or ''[[guide_ftp_script_to_sftp#ascii|ascii]]'' commands to ''-transfer'' switch. | + | You need to map previous ''[[#binary|binary]]'' or ''[[#ascii|ascii]]'' commands to ''-transfer'' switch. |
WinSCP command ''get'' can accept multiple files as its arguments, but the last argument needs to be target path. Use ''.\'' to download to current local working directory (equivalent to ''mget''). | WinSCP command ''get'' can accept multiple files as its arguments, but the last argument needs to be target path. Use ''.\'' to download to current local working directory (equivalent to ''mget''). | ||
Line 208: | Line 208: | ||
Use ''[[scriptcommand_get|put]]'' command. | Use ''[[scriptcommand_get|put]]'' command. | ||
- | You need to map previous ''[[guide_ftp_script_to_sftp#binary|binary]]'' or ''[[guide_ftp_script_to_sftp#ascii|ascii]]'' commands to ''-transfer'' switch. | + | You need to map previous ''[[#binary|binary]]'' or ''[[#ascii|ascii]]'' commands to ''-transfer'' switch. |
WinSCP command ''put'' can accept multiple files as its arguments, but the last argument needs to be target path. Use ''./'' to upload to current remote working directory (equivalent to ''mput''). | WinSCP command ''put'' can accept multiple files as its arguments, but the last argument needs to be target path. Use ''./'' to upload to current remote working directory (equivalent to ''mput''). | ||
Line 232: | Line 232: | ||
Use ''[[scriptcommand_open|open]]'' command. | Use ''[[scriptcommand_open|open]]'' command. | ||
- | Credentials specified on separate lines of ''ftp.exe'' script (following ''open'' command) need to convert to part of [[session_url|session URL]] parameter of WinSCP ''open'' command. See [[guide_ftp_script_to_sftp#credentials|converting credentials]] above. The same applies to username specified using ''[[guide_ftp_script_to_sftp#user|user]]'' command. | + | Credentials specified on separate lines of ''ftp.exe'' script (following ''open'' command) need to convert to part of [[session_url|session URL]] parameter of WinSCP ''open'' command. See [[#credentials|converting credentials]] above. The same applies to username specified using ''[[#user|user]]'' command. |
Example: | Example: | ||
Line 263: | Line 263: | ||
Use ''[[scriptcommand_put|put]]'' command. | Use ''[[scriptcommand_put|put]]'' command. | ||
- | You need to map previous ''[[guide_ftp_script_to_sftp#binary|binary]]'' or ''[[guide_ftp_script_to_sftp#ascii|ascii]]'' commands to ''-transfer'' switch. | + | You need to map previous ''[[#binary|binary]]'' or ''[[#ascii|ascii]]'' commands to ''-transfer'' switch. |
Example: | Example: | ||
Line 282: | Line 282: | ||
==== quit ==== | ==== quit ==== | ||
- | Alias to ''[[guide_ftp_script_to_sftp#bye|bye]]'' command. | + | Alias to ''[[#bye|bye]]'' command. |
==== quote ==== | ==== quote ==== | ||
- | Alias to ''[[guide_ftp_script_to_sftp#literal|literal]]'' command. | + | Alias to ''[[#literal|literal]]'' command. |
==== recv ==== | ==== recv ==== | ||
- | Alias to ''[[guide_ftp_script_to_sftp#get|get]]'' command. | + | Alias to ''[[#get|get]]'' command. |
Note that WinSCP also supports ''recv'' alias. | Note that WinSCP also supports ''recv'' alias. | ||
Line 301: | Line 301: | ||
==== send ==== | ==== send ==== | ||
- | Alias to ''[[guide_ftp_script_to_sftp#put|put]]'' command. | + | Alias to ''[[#put|put]]'' command. |
Note that WinSCP also supports ''send'' alias. | Note that WinSCP also supports ''send'' alias. | ||
==== type ==== | ==== type ==== | ||
- | Command ''type ascii'' is an alias to ''[[guide_ftp_script_to_sftp#ascii|ascii]]'' command. | + | Command ''type ascii'' is an alias to ''[[#ascii|ascii]]'' command. |
- | Command ''type binary'' is an alias to ''[[guide_ftp_script_to_sftp#binary|binary]]'' command. | + | Command ''type binary'' is an alias to ''[[#binary|binary]]'' command. |
==== user ==== | ==== user ==== |