[TCC-RT] Console-less script runner

Aug 23, 2010
285
2
#1
The idea sparkled after recalling the php-win.exe existence.

The basic idea is this:
1. Same basic functionality as existing tcc.exe. This means same program switches accepted (only relevant ones recognized, as it is for RT's tcc.exe, but all accepted)
2. No STDIN (obviously). This means the descriptor is closed and any attempts of the script to read from it should fail immediately.
3. STDOUT is discarded (there's no console, nowhere to display it).
4. STDERR is captured.
5. If anything is captured from STDERR, a MessageBox with captured content is shown when script finished or certain buffer length (~250 chars) is exceeded.

The application area is various utility scripts you may be running, perhaps from hotkeys, that would otherwise flash console windows or require wrapping into .lnk with "run minimized" setting.