as you are spawing a windows app, it needs to create its window for it to
work (also to implement its window loop logic). you are stuck with this
behavior. you can remove the create window permission (default with asp.net
and sevices) but then the app probably won't run. you will probably need to
a logon on the server so there is a valid desktop. all in all not a good
solution - you should replaces this app with a server based version as soon
as possible.
note: in ProcessStartInfo, the CreateNoWindow is used for console apps and
shell execute, to determine if a new command window should be created.
-- bruce (sqlwork.com)
"Paul" <ma********@hotmail.com.nospam> wrote in message
news:#i**************@tk2msftngp13.phx.gbl...
The application we are spawning is not ours, so we cannot do any
recompile.
"John Timney (Microsoft MVP)" <ti*****@despammed.com> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl... have you tried to compile it as an exe rather than a winexe
--
Regards
John Timney (Microsoft ASP.NET MVP)
----------------------------------------------
<shameless_author_plug>
Professional .NET for Java Developers with C#
ISBN:1-861007-91-4
Professional Windows Forms
ISBN: 1861005547
Professional JSP 2nd Edition
ISBN: 1861004958
Professional JSP
ISBN: 1861003625
Beginning JSP Web Development
ISBN: 1861002092
</shameless_author_plug>
----------------------------------------------
"Paul" <ma********@hotmail.com.nospam> wrote in message
news:eg**************@TK2MSFTNGP09.phx.gbl... Hi.
I need to launch a windows application and then send keyboard event to
this process to run certain commands. I've created a COM+ appplication to spawn and talk to the application which works well however the launched
application always shows the UI where-as I need this to be hidden,
even calling the windowhidden on the process strart info does not work.
Does this somehow need to spawned under a different account process ?
_ProcessInfo = New ProcessStartInfo
_ProcessInfo.WorkingDirectory =
node.Item("ProgramDirectory").InnerText _ProcessInfo.FileName = node.Item("ProgramName").InnerText
_ProcessInfo.Arguments = node.Item("ProgramArguments").InnerText
_ProcessInfo.CreateNoWindow = True
_ProcessInfo.UseShellExecute = False
_ProcessInfo.RedirectStandardOutput = True
Thanks
Paul