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,LOTS_OF_MONEY autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,3b009bb3a08ff095 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-03-19 01:26:08 PST From: "Martin Dowie" Newsgroups: comp.lang.ada References: Subject: Re: file list in a directory Date: Mon, 19 Mar 2001 09:23:19 -0000 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.00.2314.1300 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 NNTP-Posting-Host: superted.dsge.edinbr.gmav.gecm.com Message-ID: <3ab5cdf2$1@pull.gecm.com> X-Trace: 19 Mar 2001 09:14:26 GMT, superted.dsge.edinbr.gmav.gecm.com Path: supernews.google.com!sn-xit-03!supernews.com!news-feed.riddles.org.uk!fr.clara.net!heighliner.fr.clara.net!grolier!btnet-peer0!btnet-feed5!btnet!newreader.ukcore.bt.net!pull.gecm.com!superted.dsge.edinbr.gmav.gecm.com Xref: supernews.google.com comp.lang.ada:5833 Date: 2001-03-19T09:23:19+00:00 List-Id: If you're using Unix, something like this has worked for me in the past (no guarantees here, I'm on a Windohs machine just now and this is from memory :-) procedure Command_Line is function C_System (Value : String) return Integer; pragma Import (C, C_System, "System"); Result : integer; begin Result := C_System (Value => "ls > ./temp.txt"); end Command_Line; EtienneB wrote in message news:AOss6.124$76.376857@nnrp1.proxad.net... > How can get it in Ada ? > Thanks > Etienne Baudin > >