Differences

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

2025-01-20 2025-01-20 (current)
no summary (103.43.234.162) (hidden) (untrusted) 5.19 stable has been released (martin)
Line 21: Line 21:
What you can do with it: What you can do with it:
-  * Supports conso+  * 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.)) 
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 29: Line 31:
For input/output redirection use standard operators: For input/output redirection use standard operators:
  * ''>'' for output redirection;   * ''>'' for output redirection;
-  * ''<'' for input redi+  * ''<'' for input redirection; 
 +  * ''|'' for piping. 
 + 
 +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.// 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.//

Last modified: by martin