executables » Revisions »
Differences
This shows you the differences between the selected revisions of the page.
| executables 2019-07-31 | executables 2025-07-18 (current) | ||
| Line 17: | Line 17: | ||
| * It can be used to execute scripts without showing any window (by omitting ''[[commandline#scripting|/console]]'' parameter). | * It can be used to execute scripts without showing any window (by omitting ''[[commandline#scripting|/console]]'' parameter). | ||
| - | open sftp://greg.lovekamp:password@moveit.illinois.gov/ | + | ===== [[winscp.com]] winscp.com ===== |
| - | get -latest /Distribution/CMS/PayTracking/SERS/DAILY.CHANGE.*.CSV \\serdoman\srsshare\DBDUMPS1\FtpDrops\InsurancePremiums\HistoryMorneauShepellFiles\ | + | The ''winscp.com'' executable is a simple tool that internally runs ''winscp.exe'' and provides console interface for it. Its primary purpose is [[scripting]]. |
| - | get -latest /Distribution/CMS/PayTracking/SERS/DAILY.CHANGE.*.CSV \\serdoman\srsshare\DBDUMPS1\FtpDrops\InsurancePremiums\DAILY.CHANGE.CSV | + | |
| - | exit | + | What you can do with it: |
| + | · * 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. | ||
| + | |||
| + | As WinSCP is an Unicode application, you should use a TrueType console font with a full Unicode support, like "Consolas" or "Lucida Console". | ||
| ==== [[redirection]] Input/Output Redirection ==== | ==== [[redirection]] Input/Output Redirection ==== | ||
| Line 28: | 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.// | ||