| delorie.com/archives/browse.cgi | search |
| Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
| List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
| List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
| List-Post: | <mailto:cygwin AT cygwin DOT com> |
| List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs> |
| Sender: | cygwin-owner AT cygwin DOT com |
| Mail-Followup-To: | cygwin AT cygwin DOT com |
| Delivered-To: | mailing list cygwin AT cygwin DOT com |
| Message-ID: | <3E25FBD0.1030701@mscha.org> |
| Date: | Thu, 16 Jan 2003 01:24:48 +0100 |
| From: | Michael Schaap <cygwin AT mscha DOT org> |
| User-Agent: | Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.3a) Gecko/20021212 |
| X-Accept-Language: | en-us, en |
| MIME-Version: | 1.0 |
| To: | "Cygwin Mail List (E-mail)" <cygwin AT cygwin DOT com> |
| Subject: | Re: Explorer Shell shortcuts with a DOS shell |
| References: | <E119912C99F7574189335FC080A7104E29E063 AT abca303xsrvx02 DOT na DOT ad DOT utilicorp DOT com> <00b601c2bcf4$0feeb720$0402a8c0 AT badsector> |
| In-Reply-To: | <00b601c2bcf4$0feeb720$0402a8c0@badsector> |
| X-Virus-Scanned: | at mscha.org by amavisd-milter (http://amavis.org/) |
On 16-Jan-2003 01:13, Dave Hooper wrote:
> You know what I would do? I'd write a tiny .exe (for Win32) wrapper around
> cmd.exe and use that to execute your .bat which in turn spawns bash, etc.
> Why? Because as far as I know there's no way to instruct a shortcut to 'run
> hidden' (you can run Minimized, though).
>
> So, if the command shell window is 'only slightly' annoying, you can set
> your shortcut to
>
> cmd.exe /c your-batch-script.bat
>
> and set that shortcut's properties to run minimized.
>
> But, if the command shell window is 'really very' annoying, write a cheesy
> .exe that does a CreateProcess() on cmd.exe and specifies the SW_HIDE flag
> on launch.
>
> This is from memory, so apologies in advance for any mistakes or omissions.
> NB - this isn't really on-topic for Cygwin as it's a Win32-explorer
> integration problem not a Cygwin problem. Of course, you could use Cygwin
> (or Mingw32) to create your wrapper .exe ! :-)
>
> Naturally you'll want to use command.exe instead of cmd.exe if you're using
> Win9x instead of NT/2K/XP. You could even make use of the COMSPEC
> environment variable (e.g. on my 2K box Windows has this set to
> J:\WINNT\system32\cmd.exe)
Or just make sure you have the cygutils package installed, and run:
cygstart --hide your-batch-script.bat
- Michael
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |