Start in a batch does not work as expected

  • Thread starter Thread starter Angel Tsankov
  • Start date Start date
A

Angel Tsankov

Why doe NOT the following batch file work as expected:

start "asd" ping 10.0.52.45
 
Why doe NOT the following batch file work as expected:

start "asd" ping 10.0.52.45

I would expect it to open a child MS-DOS-style window entitled "asd"
and, in that window, run a PING command on address 10.0.52.45. Any
following commands in the Batch file would be executed without waiting
for the PING process in the child window to complete. What different
behaviour did you observe?

For help with START syntax, use /? thus:

start /?
 
William Allen said:
in message

I would expect it to open a child MS-DOS-style window entitled "asd"
and, in that window, run a PING command on address 10.0.52.45. Any
following commands in the Batch file would be executed without
waiting
for the PING process in the child window to complete. What different
behaviour did you observe?

It starts opeing MS-DOC-style windows. A lot of them...
 
in message

It starts opeing MS-DOC-style windows. A lot of them...

Assuming you have named the Batch file START.BAT or START.CMD change
the name to something that doesn't conflict with an Internal or External
command name.
 
William Allen said:
in message

Assuming you have named the Batch file START.BAT or START.CMD change
the name to something that doesn't conflict with an Internal or
External
command name.

Sure, thanks!
 
Back
Top