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-06 17:40:48 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: Mon, 06 May 2002 20:41:56 -0400 Organization: CompuServe Interactive Services Message-ID: <2g8eduk0pqkck5a05pq1l57tslqiekr8nn@4ax.com> References: <3CD714F3.20FCA67@acm.org> NNTP-Posting-Host: mid-tgn-noy-vty10.as.wcom.net Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: suaar1ab.prod.compuserve.com 1020732048 24420 216.192.93.10 (7 May 2002 00:40:48 GMT) X-Complaints-To: newsmaster@compuserve.com NNTP-Posting-Date: 7 May 2002 00:40:48 GMT X-Newsreader: Forte Agent 1.8/32.548 Xref: archiver1.google.com comp.lang.ada:23608 Date: 2002-05-07T00:40:48+00:00 List-Id: 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? Dave Head On Mon, 06 May 2002 23:42:49 GMT, Jeffrey Carter wrote: >Dave Head wrote: >> >> Further info... I _found_ command.com under c:\winnt\system32. Why wasn't >> it found in the search starting at c:\? I dunno - prolly misspelt it. But, >> I put the whole path into the spawn for the command. Same result. So, not >> only don't I know how to get it working, I've got nary a clue as to why it >> doesn't. > >I can't vouch for Win2k. Under Win98, I have a program that does > > procedure Create_File_List is > -- Use DOS dir command to create list of signature-file names > Arg : Os_Lib.Argument_List_Access; > Success : Boolean; > begin -- Create_File_List > Arg := Os_Lib.Argument_String_To_List ("/c dir/-p/b signature?? > >" & File_List_Name); > > Ensure_Success : loop > Os_Lib.Spawn (Program_Name => "command", Args => Arg.all, > Success => Success); > > exit Ensure_Success when Success; > end loop Ensure_Success; > end Create_File_List;