Tech Support > Microsoft Windows > Batch command Q
Batch command Q
Posted by Simon Woods on November 4th, 2005


Hi

Is there a way of stopping the Command Window displaying when executing a
Batch command?

Obviously I can stop the command displaying, but ideally, I'd like to stop
the window displaying or perhaps hide it?

Thanks

Simon


Posted by Pegasus \(MVP\) on November 4th, 2005



"Simon Woods" <simonSPAMMENOT.woods@virginNOTMESPAM.net> wrote in message
news:ehAUE%23S4FHA.3588@TK2MSFTNGP15.phx.gbl...
> Hi
>
> Is there a way of stopping the Command Window displaying when executing a
> Batch command?
>
> Obviously I can stop the command displaying, but ideally, I'd like to stop
> the window displaying or perhaps hide it?
>
> Thanks
>
> Simon
>
>


There are several methods to do this. To recommend the most
appropriate method, more information is needed about your
actual requirements. What exactly are you trying to do?


Posted by Simon Woods on November 4th, 2005



"Pegasus (MVP)" <I.can@fly.com> wrote in message
news:%233mFrAT4FHA.1416@TK2MSFTNGP09.phx.gbl...
>
> "Simon Woods" <simonSPAMMENOT.woods@virginNOTMESPAM.net> wrote in message
> news:ehAUE%23S4FHA.3588@TK2MSFTNGP15.phx.gbl...
>> Hi
>>
>> Is there a way of stopping the Command Window displaying when executing a
>> Batch command?
>>
>> Obviously I can stop the command displaying, but ideally, I'd like to
>> stop
>> the window displaying or perhaps hide it?
>>
>> Thanks
>>
>> Simon
>>
>>

>
> There are several methods to do this. To recommend the most
> appropriate method, more information is needed about your
> actual requirements. What exactly are you trying to do?


I basically have written an exe which requires different command line
arguments to determine different behaviour. Im' using batch files to pass
the different arguments. In one mode, the exe displays a form, in another
mode, just a msgbox. It just looks a bit unsightly having the black command
window on-screen while the msgbox or form is being displayed.

Is that sufficient information?

Thanks

Simon


Posted by Pegasus \(MVP\) on November 4th, 2005



"Simon Woods" <simonSPAMMENOT.woods@virginNOTMESPAM.net> wrote in message
news:OiezrOT4FHA.3636@TK2MSFTNGP09.phx.gbl...
>
> "Pegasus (MVP)" <I.can@fly.com> wrote in message
> news:%233mFrAT4FHA.1416@TK2MSFTNGP09.phx.gbl...
> >
> > "Simon Woods" <simonSPAMMENOT.woods@virginNOTMESPAM.net> wrote in

message
> > news:ehAUE%23S4FHA.3588@TK2MSFTNGP15.phx.gbl...
> >> Hi
> >>
> >> Is there a way of stopping the Command Window displaying when executing

a
> >> Batch command?
> >>
> >> Obviously I can stop the command displaying, but ideally, I'd like to
> >> stop
> >> the window displaying or perhaps hide it?
> >>
> >> Thanks
> >>
> >> Simon
> >>
> >>

> >
> > There are several methods to do this. To recommend the most
> > appropriate method, more information is needed about your
> > actual requirements. What exactly are you trying to do?

>
> I basically have written an exe which requires different command line
> arguments to determine different behaviour. Im' using batch files to pass
> the different arguments. In one mode, the exe displays a form, in another
> mode, just a msgbox. It just looks a bit unsightly having the black

command
> window on-screen while the msgbox or form is being displayed.
>
> Is that sufficient information?
>
> Thanks
>
> Simon
>
>


In this case the following will fix the problem:

@echo off
start /b "Simon's Application" "c:\tools\simon.exe" /a /b /c etc.

The batch file will terminate immediately even if the message
box remains on the screen.


Posted by Simon Woods on November 4th, 2005



"Pegasus (MVP)" <I.can@fly.com> wrote in message
news:uPuewWT4FHA.3588@TK2MSFTNGP15.phx.gbl...
>
> "Simon Woods" <simonSPAMMENOT.woods@virginNOTMESPAM.net> wrote in message
> news:OiezrOT4FHA.3636@TK2MSFTNGP09.phx.gbl...
>>
>> "Pegasus (MVP)" <I.can@fly.com> wrote in message
>> news:%233mFrAT4FHA.1416@TK2MSFTNGP09.phx.gbl...
>> >
>> > "Simon Woods" <simonSPAMMENOT.woods@virginNOTMESPAM.net> wrote in

> message
>> > news:ehAUE%23S4FHA.3588@TK2MSFTNGP15.phx.gbl...
>> >> Hi
>> >>
>> >> Is there a way of stopping the Command Window displaying when
>> >> executing

> a
>> >> Batch command?
>> >>
>> >> Obviously I can stop the command displaying, but ideally, I'd like to
>> >> stop
>> >> the window displaying or perhaps hide it?
>> >>
>> >> Thanks
>> >>
>> >> Simon
>> >>
>> >>
>> >
>> > There are several methods to do this. To recommend the most
>> > appropriate method, more information is needed about your
>> > actual requirements. What exactly are you trying to do?

>>
>> I basically have written an exe which requires different command line
>> arguments to determine different behaviour. Im' using batch files to pass
>> the different arguments. In one mode, the exe displays a form, in another
>> mode, just a msgbox. It just looks a bit unsightly having the black

> command
>> window on-screen while the msgbox or form is being displayed.
>>
>> Is that sufficient information?
>>
>> Thanks
>>
>> Simon
>>
>>

>
> In this case the following will fix the problem:
>
> @echo off
> start /b "Simon's Application" "c:\tools\simon.exe" /a /b /c etc.
>
> The batch file will terminate immediately even if the message
> box remains on the screen.


Thx



Similar Posts