comp.lang.ada
 help / color / mirror / Atom feed
From: DPH <rally2xs@compuserve.com>
Subject: Re: Using Spawn in Win2K
Date: Mon, 06 May 2002 20:41:56 -0400
Date: 2002-05-07T00:40:48+00:00	[thread overview]
Message-ID: <2g8eduk0pqkck5a05pq1l57tslqiekr8nn@4ax.com> (raw)
In-Reply-To: 3CD714F3.20FCA67@acm.org

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 <jrcarter@acm.org>
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;




  reply	other threads:[~2002-05-07  0:41 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 [this message]
2002-05-07  1:47       ` David C. Hoos, Sr.
2002-05-07  8:23         ` DPH
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