executables » Revisions »
Differences
This shows you the differences between the selected revisions of the page.
| executables 2019-03-07 | executables 2026-06-03 (current) | ||
| Line 1: | Line 1: | ||
| - | Both are as well available for [[portable|portable use]]. | + | ~~NOTOC~~ |
| + | ====== Executables winscp.exe and winscp.com ====== | ||
| + | WinSCP has two executables: | ||
| + | * ''[[#winscp.exe|winscp.exe]]'': Main executable, supports both GUI and console operation; | ||
| + | * ''[[#winscp.com|winscp.com]]'': Console interface tool, supports console operation only, allows input/output redirection. | ||
| + | |||
| + | This follows two basic executable types of Windows operation system, GUI and console. | ||
| + | |||
| + | Both executables are part of the [[installation|installation package]]. Both are as well available for [[portable|portable use]]. | ||
| ===== [[winscp.exe]] winscp.exe ===== | ===== [[winscp.exe]] winscp.exe ===== | ||
| Line 16: | Line 24: | ||
| * 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.((If your ==security software== flags a PE executable file with the ''.com'' extension, you can rename ''winscp.com'' to ''WinSCP-com.exe''. &beta_feature)) |
| As WinSCP is an Unicode application, you should use a TrueType console font with a full Unicode support, like "Consolas" or "Lucida Console". | As WinSCP is an Unicode application, you should use a TrueType console font with a full Unicode support, like "Consolas" or "Lucida Console". | ||
| Line 26: | 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.// | ||