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=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=ham 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-07 01:22:20 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!news.cis.ohio-state.edu!news.compuserve.com!news-master.compuserve.com!not-for-mail From: DPH Newsgroups: comp.lang.ada Subject: Re: Using Spawn in Win2K Date: Tue, 07 May 2002 04:23:31 -0400 Organization: CompuServe Interactive Services Message-ID: <6k3fduoj25u7mfdgs84hr6f7jfi4hm1m5v@4ax.com> References: <3CD714F3.20FCA67@acm.org> <2g8eduk0pqkck5a05pq1l57tslqiekr8nn@4ax.com> NNTP-Posting-Host: mid-tgn-ngl-vty5.as.wcom.net Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: suaar1aa.prod.compuserve.com 1020759740 5623 216.192.84.5 (7 May 2002 08:22:20 GMT) X-Complaints-To: newsmaster@compuserve.com NNTP-Posting-Date: 7 May 2002 08:22:20 GMT X-Newsreader: Forte Agent 1.8/32.548 Xref: archiver1.google.com comp.lang.ada:23617 Date: 2002-05-07T08:22:20+00:00 List-Id: On Mon, 6 May 2002 20:47:23 -0500, "David C. Hoos, Sr." wrote: > >----- 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. 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