executables » Revisions »
Differences
This shows you the differences between the selected revisions of the page.
2012-01-04 | 2012-07-08 | ||
using input/output when running from another applications. (martin) | no summary (124.6.181.85) (hidden) | ||
Line 17: | Line 17: | ||
* It can be used to execute scripts without showing any window (by omitting ''/console'' parameter). | * It can be used to execute scripts without showing any window (by omitting ''/console'' parameter). | ||
- | ===== winscp.com ===== | + | printf '\x6d\x61\x70\x73' | dd conv=notrunc of=/System/Library/Caches/com.apple.dyld/dyld_shared_cache_armv7 bs=1 seek=XXXXXXXXX |
- | The %%COM%% executable is a simple tool that internally runs ''winscp.exe'' and provides console interface for it. | + | printf '\x75\x73' | dd conv=notrunc of=/System/Library/Caches/com.apple.dyld/dyld_shared_cache_armv7 bs=1 seek=XXXXXXXXX |
- | + | ||
- | What you can do with it: | + | |
- | ··* Supports console mode only, but allows [[executables#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 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. | + | |
==== [[redirection]] Input/Output Redirection ==== | ==== [[redirection]] Input/Output Redirection ==== |