executables » Revisions »
Differences
This shows you the differences between the selected revisions of the page.
executables 2017-01-04 | executables 2024-10-11 (current) | ||
Line 10: | Line 10: | ||
===== [[winscp.exe]] winscp.exe ===== | ===== [[winscp.exe]] winscp.exe ===== | ||
- | The ''.exe'' executable is the main one. | + | The ''winscp.exe'' executable is the main one. |
What you can do with it: | What you can do with it: | ||
Line 18: | Line 18: | ||
===== [[winscp.com]] winscp.com ===== | ===== [[winscp.com]] winscp.com ===== | ||
- | The ''.com'' executable is a simple tool that internally runs ''winscp.exe'' and provides console interface for it. Its primary purpose is [[scripting]]. | + | The ''winscp.com'' executable is a simple tool that internally runs ''winscp.exe'' and provides console interface for it. Its primary purpose is [[scripting]]. |
What you can do with it: | What you can do with it: | ||
* Supports console mode only, but allows [[#redirection|input/output redirection]]; | * Supports console mode only, but allows [[#redirection|input/output redirection]]; | ||
- | * 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.)) |
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. | ||
Line 34: | Line 34: | ||
* ''|'' for piping. | * ''|'' for piping. | ||
- | You can also use input/output redirection when running ''winscp.com'' from another application. //For example see [[guide_dotnet#input|Guide to SFTP transfers in .NET]].// | + | You can not only redirect normal scripting output and input, but even actual file contents. For that use [[commandline#stdout|''/stdout'']] and [[commandline#stdin|''/stdin'']] command-line switches. |
+ | |||
+ | You can also use input/output redirection when running ''winscp.com'' from another application. //For example see [[guide_dotnet#input|Guide to SFTP transfers in .NET]]. Though for this purpose, consider using [[library|WinSCP .NET assembly]] instead.// |