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,9d97d1b03d2c8483 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-01-16 18:28:36 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!newsfeed.berkeley.edu!news-hog.berkeley.edu!ucberkeley!nntp-relay.ihug.net!ihug.co.nz!news.linkpendium.com!news-xfer.cox.net!p01!news1.east.cox.net.POSTED!53ab2750!not-for-mail From: "R. Srinivasan" Newsgroups: comp.lang.ada References: Subject: Re: Directory Listing X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4807.1700 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4807.1700 Message-ID: Date: Fri, 17 Jan 2003 02:28:35 GMT NNTP-Posting-Host: 68.10.37.142 X-Complaints-To: abuse@cox.net X-Trace: news1.east.cox.net 1042770515 68.10.37.142 (Thu, 16 Jan 2003 21:28:35 EST) NNTP-Posting-Date: Thu, 16 Jan 2003 21:28:35 EST Organization: Cox Communications Xref: archiver1.google.com comp.lang.ada:33112 Date: 2003-01-17T02:28:35+00:00 List-Id: apart from all the splendid ideas, i suggest you also take a look at the package gnat.command_line and in particular procedures related to filename expansion. if you need an example, i have a sample program "findfiles" that is a cheap find (the unix util) in ada heavily relying on gnat packages mentioned - please contact me by email. regards srini "Rick Selby" wrote in message news:b01ttm$1u5$1@pump1.york.ac.uk... > Hi, > > I've been searching around for a solution to this for a while, and finally > remembered about newsgroups... > > Basically I'd like a program that I can run in a directory, that will be > able to read in the names of the files in the directory, do stuff with them, > then create some directories and move the files around. > > Obviously the 'doing stuff with them' bit I know I can do... but is anything > else remotely possible in Ada? I'd like to use Ada because, well, I know it, > and although I'm pretty sure it could be done in C I haven't the foggiest > where to start there. > > And I think I remember a command to run dos programs, so the creating > directories and moving files seems reasonable, if only I knew what the file > names were... > > Oh I'm running under Windows with Gnat. > > Cheers, > --Rick > >