Differences

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

2013-08-11 2013-08-11
exe/com syntax (martin) linking scripting, reordering .com features by importance (martin)
Line 18: Line 18:
===== winscp.com ===== ===== winscp.com =====
-The ''.com'' executable is a simple tool that internally runs ''winscp.exe'' and provides console interface for it.+The ''.com'' executable is a simple tool that internally runs ''winscp.exe'' and provides console interface for it. It's primary purpose is [[scripting]].
What you can do with it: What you can do with it:
  * Supports console mode only, but allows [[executables#redirection|input/output redirection]];   * Supports console mode only, but allows [[executables#redirection|input/output redirection]];
 +  * When run from Windows shell (i.e. ''cmd.exe'' or batch file), the shell waits for WinSCP to finish. So you can then [[scripting#checking_results|check for WinSCP exit code]].
  * When run from another console application (such as standard Windows console/command-line window, i.e. ''cmd.exe''), it inherits its console((''winscp.exe /console'' would pop up in new console window.)).   * When run from another console application (such as standard Windows console/command-line window, i.e. ''cmd.exe''), it inherits its console((''winscp.exe /console'' would pop up in new console window.)).
-  * When run from Windows shell (i.e. ''cmd.exe'' or batch file), the shell waits for WinSCP to finish. So you can then check for WinSCP exit code. 
The ''.com'' executable needs the ''.exe'' one to operate. It looks for it in the same directory where it is located itself. The ''.exe'' must have exactly the same name. The ''.com'' executable needs the ''.exe'' one to operate. It looks for it in the same directory where it is located itself. The ''.exe'' must have exactly the same name.

Last modified: by martin