Angel Tsankov
09-02-2005, 10:02 AM
Why doe NOT the following batch file work as expected:
start "asd" ping 10.0.52.45
--
Angel Tsankov
fn42551@fmi.uni-sofia.bg
William Allen
09-02-2005, 10:11 AM
"Angel Tsankov" wrote in message
> 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
Free interactive Batch Course http://www.allenware.com/icsw/icswidx.htm
Batch Reference with examples http://www.allenware.com/icsw/icswref.htm
From email address not checked. Contact us at http://www.allenware.com/
Angel Tsankov
09-02-2005, 11:53 AM
"William Allen" <_wa_@email.com> wrote in message
news:431817b2$0$1296$ed2619ec@ptn-nntp-reader02.plus.net...
> "Angel Tsankov" wrote in message
>> 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?
>
It starts opeing MS-DOC-style windows. A lot of them...
William Allen
09-02-2005, 02:19 PM
"Angel Tsankov" wrote in message
>
> "William Allen" wrote in message
> > "Angel Tsankov" wrote in message
> >> 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?
> >
>
> 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
Free interactive Batch Course http://www.allenware.com/icsw/icswidx.htm
Batch Reference with examples http://www.allenware.com/icsw/icswref.htm
From email address not checked. Contact us at http://www.allenware.com/
Angel Tsankov
09-02-2005, 03:33 PM
"William Allen" <_wa_@email.com> wrote in message
news:431851d2$0$97117$ed2619ec@ptn-nntp-reader03.plus.net...
> "Angel Tsankov" wrote in message
>>
>> "William Allen" wrote in message
>> > "Angel Tsankov" wrote in message
>> >> 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?
>> >
>>
>> 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.
>
Sure, thanks!