Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- run C:foo.exe /BUILD
- run "C:foo.exe /BUILD"
- Windows programs are either GUI programs or console programs. When
- started console programs will either attach to an existing console
- or create a new one. GUI programs can never attach to an exiting con-
- sole. There is no way to attach to an existing console but hide it if
- started as GUI program.
- run will do this for you. It works as intermediate and starts a pro-
- gram but makes the console window hidden.
- </cygdrive/d/sandbox> $ run ls -la
- </cygdrive/d/sandbox> $
- </cygdrive/d/sandbox> $ cat foo.lst
- cat: foo.lst: No such file or directory
- </cygdrive/d/sandbox> $ run ls -la >foo.lst
- </cygdrive/d/sandbox> $
- </cygdrive/d/sandbox> $ cat foo.lst
- total 9272280
- drwx------+ 15 jcasadonte ???????? 0 Feb 7 10:39 .
- drwxrwxr-x+ 14 Administrators SYSTEM 0 Feb 7 00:44 ..
- -rwx------+ 1 jcasadonte ???????? 26300 Apr 10 2006 ATT01779.jpg
- [...etc...]
Add Comment
Please, Sign In to add comment