Overview
| Artifact ID: | f8813ffff6da6ba88aae7205a655bea7ae2266db |
|---|---|
| Ticket: | 469618ffffffffffffffffffffffffffffffffff
using [exec] for WinGUI apps is invalid. |
| User & Date: | davygrvy on 2001-10-09 19:03:27 |
Changes
- assignee changed to: "andreas_kupries"
- cmimetype changed to: "text/plain"
- comment changed to:
Windows GUI applications are detached from a console and do not support pipes. [exec] should know this. Here's what I added: C:\WINNT\system32>tclsh84 % exec notepad C:\WINNT\system32\notepad.exe is a GUI application that doesn't support pipes: broken pipe % puts $errorCode POSIX EPIPE {broken pipe} % I feel the errorCode is conceptually correct. I also added deeper checks into the PE header of the file for checking if the file truly is executable. I also added a check for the .cmd extension which is analogous to .bat The best way to launch GUI applications is with ShellExecute() rather than CreateProcess(). [exec] can not support pipes to GUI applications and i feel it should be disabled. This would of course need a new command for launching GUI apps... - foundin changed to: "None"
- priority changed to: "5 Medium"
- resolution changed to: "None"
- status changed to: "Open"
- submitter changed to: "davygrvy"
- subsystem changed to: "25. Channel System"
- title changed to: "using [exec] for WinGUI apps is invalid."
- type changed to: "Patch"