Batch command Q

  • Thread starter Thread starter Simon Woods
  • Start date Start date
S

Simon Woods

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
 
Simon Woods said:
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?
 
Pegasus (MVP) said:
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
 
Simon Woods said:
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.
 
Pegasus (MVP) said:
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
 
Back
Top