Stefan Küng wrote:
> Kelley Trombly-Freytag wrote:
>> When using the svn+rsh protocol, with a rsh.exe (not a batch file),
>> each server access pops
>> up a Windows command window (that goes away once the command has
>> completed). How
>> can we get rid of these distracting command windows?
>
> You can't. That's why TSVN ships with TortoisePlink and not Plink - we
> had to patch Plink to not open the command window. But that has a
> drawback too: errors won't show up because plink sends the errors to
> stderr, which a command-window-less program doesn't have.
>
> Stefan
>
Sure you can, at least as long as you are in control of the call to
CreateProcess(). Specify the SW_HIDE flag in the STARTUPINFO structure
passed to CreateProcess(). Then, instead of trying to invoke the
console application directly, use %COMSPEC% /c to start it. Starting
Plink might look something like:
"\"%COMSPECT%\" /c \"Path To\\Plink.exe\" -plink arguments"
What happens is the command interpreter (cmd.exe on XP) will be started.
The command interpreter will obey the wShowWindow flag of the
STARTUPINFO structure which is SW_HIDE in this case. The /c instructs
the command interpreter to carry out the rest of the command line and
close when finished. Now Plink would be started inside *a hidden*
command window. No need to hack the original Plink and no messy command
window flashing on-screen. As stated, though, you must have access to
the call to CreateProcess() for this to work so that you can set the
ShowWindow flag.
--
- Valik
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tortoisesvn.tigris.org
For additional commands, e-mail: users-help@tortoisesvn.tigris.org
Received on Wed May 24 02:41:20 2006