public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* A question about cygstart
@ 2009-01-14 18:27 Andy Hall
  2009-01-14 23:45 ` Buchbinder, Barry (NIH/NIAID) [E]
  0 siblings, 1 reply; 2+ messages in thread
From: Andy Hall @ 2009-01-14 18:27 UTC (permalink / raw)
  To: cygwin

I have build scripts for .NET and .NET CF apps, that require Visual Studio to be running in order for the build to complete.   Because these builds all run in the background I would like to start Visual Studio minimized so that it does not interfere with other activities while the build is running.

I start Visual Studio in the scripts as follows. 

cygstart --showminimized   "/cygdrive/c/Program Files/Microsoft Visual Studio 8/Common7/IDE/devenv.exe" /edit

If Visual Studio is not ruining, Visual Studio will start minimized.   However, if Visual Studio is already running, a subsequent invocation of the same command will bring up the window maximized. 

No combination of options to cygstart seems to overcome this.   What other approaches are available. 



Andy Hall
ServicePower, Inc.
744 San Antonio Road
Phone: (650) 739-0988
E-Mail: a.hall@ServicePower.com


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 2+ messages in thread

* RE: A question about cygstart
  2009-01-14 18:27 A question about cygstart Andy Hall
@ 2009-01-14 23:45 ` Buchbinder, Barry (NIH/NIAID) [E]
  0 siblings, 0 replies; 2+ messages in thread
From: Buchbinder, Barry (NIH/NIAID) [E] @ 2009-01-14 23:45 UTC (permalink / raw)
  To: cygwin, 'Andy Hall'

Andy Hall wrote on Wednesday, January 14, 2009 12:57 PM:
> I start Visual Studio in the scripts as follows.
>
> cygstart --showminimized   "/cygdrive/c/Program Files/Microsoft
> Visual Studio 8/Common7/IDE/devenv.exe" /edit
>
> If Visual Studio is not ruining, Visual Studio will start minimized.
> However, if Visual Studio is already running, a subsequent invocation
> of the same command will bring up the window maximized.
>
> No combination of options to cygstart seems to overcome this.   What
> other approaches are available.

Does devenv.exe behave similarly when started from a shortcut without
cygstart?

Sounds like as it loads, devenv.exe may be looking for other instances
and then deciding what to do on its own.  You might see if Visual Studio
has any options that can change that behavior.

- Barry
  Disclaimer: Statements made herein are not made on behalf of NIAID.

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-01-14 23:26 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-01-14 18:27 A question about cygstart Andy Hall
2009-01-14 23:45 ` Buchbinder, Barry (NIH/NIAID) [E]

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).