From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-0.1 required=5.0 tests=AXB_XMAILER_MIMEOLE_OL_024C2, BAYES_00,MAILING_LIST_MULTI,REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,575c148e80bbbdf8 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-05-06 18:48:03 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!isdnet!enst!enst.fr!not-for-mail From: "David C. Hoos, Sr." Newsgroups: comp.lang.ada Subject: Re: Using Spawn in Win2K Date: Mon, 6 May 2002 20:47:23 -0500 Organization: ENST, France Sender: comp.lang.ada-admin@ada.eu.org Message-ID: References: <3CD714F3.20FCA67@acm.org> <2g8eduk0pqkck5a05pq1l57tslqiekr8nn@4ax.com> Reply-To: comp.lang.ada@ada.eu.org NNTP-Posting-Host: marvin.enst.fr Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Trace: avanie.enst.fr 1020736082 47803 137.194.161.2 (7 May 2002 01:48:02 GMT) X-Complaints-To: usenet@enst.fr NNTP-Posting-Date: Tue, 7 May 2002 01:48:02 +0000 (UTC) Return-Path: X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Errors-To: comp.lang.ada-admin@ada.eu.org X-BeenThere: comp.lang.ada@ada.eu.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: comp.lang.ada mail<->news gateway List-Unsubscribe: , Errors-To: comp.lang.ada-admin@ada.eu.org X-BeenThere: comp.lang.ada@ada.eu.org Xref: archiver1.google.com comp.lang.ada:23610 Date: 2002-05-06T20:47:23-05:00 ----- Original Message ----- From: "DPH" Newsgroups: comp.lang.ada To: 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.