comp.lang.ada
 help / color / mirror / Atom feed
From: Jeffrey Carter <jrcarter@acm.org>
Subject: Re: Using Spawn in Win2K
Date: Mon, 06 May 2002 23:42:49 GMT
Date: 2002-05-06T23:42:49+00:00	[thread overview]
Message-ID: <3CD714F3.20FCA67@acm.org> (raw)
In-Reply-To: ab6r84$4nn$1@oanews.nswc.navy.mil

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



  reply	other threads:[~2002-05-06 23:42 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 [this message]
2002-05-07  0:41     ` DPH
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