comp.lang.ada
 help / color / mirror / Atom feed
From: DPH <rally2xs@compuserve.com>
Subject: Re: Using Spawn in Win2K
Date: Tue, 07 May 2002 04:23:31 -0400
Date: 2002-05-07T08:22:20+00:00	[thread overview]
Message-ID: <6k3fduoj25u7mfdgs84hr6f7jfi4hm1m5v@4ax.com> (raw)
In-Reply-To: mailman.1020736082.626.comp.lang.ada@ada.eu.org

On Mon, 6 May 2002 20:47:23 -0500, "David C. Hoos, Sr."
<david.c.hoos.sr@ada95.com> wrote:

>
>----- Original Message -----
>From: "DPH" <rally2xs@compuserve.com>
>Newsgroups: comp.lang.ada
>To: <comp.lang.ada@ada.eu.org>
>Sent: May 06, 2002 7:41 PM
>Subject: Re: Using Spawn in Win2K
>
>
>> Wow!  Just what I needed.  Thanks a lot, Jeffry.
>>
>> If you don't mind, 1 further question.  What is the "/c" right at the
>> beginning of the argument_string_list?  I found this on a search of
>> the web (as opposed to the search of the newsgroups) too.  I musta
>> missed something about calling command.com?
>>
>As with all DOS and Windows commands issued at the command line,
>the correct syntax is obtained by issuing the command with the
>switch /?
>
>So for the command shell, you obtain the following:
>
>command /?
>Starts a new instance of the MS-DOS command interpreter.
>
>COMMAND [[drive:]path] [device] [/E:nnnnn] [/P] [/C string] [/MSG]
>
>  [drive:]path    Specifies the directory containing COMMAND.COM file.
>  device          Specifies the device to use for command input and output.
>  /E:nnnnn        Sets the initial environment size to nnnnn bytes.
>  /P              Makes the new command interpreter permanent (can't exit).
>  /C string       Carries out the command specified by string, and then stops.
>  /MSG            Specifies that all error messages be stored in memory. You
>                  need to specify /P with this switch.

Well, I feel silly.  Thanks, David.  I forgot about that.  And I've
never had occasion to call command.com from a program before.  Duh.

Dave Head



  reply	other threads:[~2002-05-07  8:23 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-05-06 20:44 Using Spawn in Win2K Dave Head
2002-05-06 21:05 ` Dave Head
2002-05-06 23:42   ` Jeffrey Carter
2002-05-07  0:41     ` DPH
2002-05-07  1:47       ` David C. Hoos, Sr.
2002-05-07  8:23         ` DPH [this message]
2002-05-06 21:49 ` Stephen Leake
2002-05-07 17:06 ` Björn Lundin
2002-05-07 17:36   ` Dave Head
2002-05-07 19:34     ` Randy Brukardt
2002-05-07 20:02       ` Dave Head
2002-05-07 23:23         ` Randy Brukardt
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox