Batch command Q

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
 
P

Pegasus \(MVP\)

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?
 
S

Simon Woods

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
 
P

Pegasus \(MVP\)

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.
 
S

Simon Woods

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Is there a stop command? 9
Run cmd.exe in background 3
Batch FTP 4
Batch File Problem 11
Need to make a better batch file 13
Batch command file quits mysteriously 11
Batch File Questions 22
Command Prompt v. Run Box? 2

Top