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 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 16:42:49 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!netnews.com!xfer02.netnews.com!newsfeed2.earthlink.net!newsfeed.earthlink.net!stamper.news.pas.earthlink.net!newsread1.prod.itd.earthlink.net.POSTED!59ce1190!not-for-mail Message-ID: <3CD714F3.20FCA67@acm.org> From: Jeffrey Carter X-Mailer: Mozilla 4.7 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Using Spawn in Win2K References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Date: Mon, 06 May 2002 23:42:49 GMT NNTP-Posting-Host: 63.184.23.198 X-Complaints-To: abuse@earthlink.net X-Trace: newsread1.prod.itd.earthlink.net 1020728569 63.184.23.198 (Mon, 06 May 2002 16:42:49 PDT) NNTP-Posting-Date: Mon, 06 May 2002 16:42:49 PDT Organization: EarthLink Inc. -- http://www.EarthLink.net Xref: archiver1.google.com comp.lang.ada:23605 Date: 2002-05-06T23:42:49+00:00 List-Id: 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; -- Jeff Carter "You empty-headed animal-food-trough wiper." Monty Python & the Holy Grail