<br /><p><font size="2">From: Zeugswetter Andreas DAZ SD [<a
href="mailto:ZeugswetterA@spardat.at">mailto:ZeugswetterA@spardat.at</a>]</font><br/><font size="2">> </font><br
/><fontsize="2">> I am not sure the test is valid, since %EDITOR% was used on </font><br /><font size="2">> the
commandline,</font><br /><font size="2">> which does it's own magic on quotes. Is there a command that </font><br
/><fontsize="2">> would use the </font><br /><font size="2">> envvar EDITOR without putting it on the commandline
?</font><br/><font size="2">> </font><br /><font size="2">> We are talking about directly using the envvar from
inside</font><br /><font size="2">> the program, no?</font><br /><font size="2">> </font><p><font size="2">I
wasn'tsure either, but a quick trudge through my Windows-installed software that has been ported from *nix didn't show
anyprograms that attempted to preserve that aspect of their behavior. CVSNT at least attempted to invoke an external
editor,so I tested with that. </font><p><font size="2">I like Kevin Brown's suggestion of writing out a temporary .txt
fileand 'executing' it. It will follow the principle of least suprise for Windows users. And it is suprisingly easy to
waitfor a child process with the NT API. WaitForSingleObjectEx() ( <a href="http://tinyurl.com/5d4tj"
target="_blank">http://tinyurl.com/5d4tj</a>) will wait with a timeout, so the caller can handle other messages or
updatecounters as needed. ( We usually timeout every 1000ms and repeat the call until it returns a non-timeout status.
)</font>