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,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,eceaf04ab9f6c9eb,start X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.224.180.141 with SMTP id bu13mr653360qab.2.1354262173512; Thu, 29 Nov 2012 23:56:13 -0800 (PST) MIME-Version: 1.0 Received: by 10.49.1.43 with SMTP id 11mr52617qej.29.1354262173478; Thu, 29 Nov 2012 23:56:13 -0800 (PST) Path: gf5ni33878599qab.0!nntp.google.com!i9no209671qap.0!postnews.google.com!y6g2000vbb.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Thu, 29 Nov 2012 23:56:13 -0800 (PST) Complaints-To: groups-abuse@google.com Injection-Info: y6g2000vbb.googlegroups.com; posting-host=193.173.52.213; posting-account=Od-2dQoAAAB0Ax1n9anxOF811WhPXsCz NNTP-Posting-Host: 193.173.52.213 User-Agent: G2/1.0 X-HTTP-Via: 1.1 S00-PROXY-ISA X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.2; Trident/4.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; InfoPath.1; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022),gzip(gfe) Message-ID: Subject: Running programs using ADA From: Hans Vlems Injection-Date: Fri, 30 Nov 2012 07:56:13 +0000 Content-Type: text/plain; charset=ISO-8859-1 Date: 2012-11-29T23:56:13-08:00 List-Id: Our company will move its IT operation to another datacentre. The new provider doesn't allow access to the command prompt (cmd.exe, it's a Windows setup). We use aprox. 10 programs that are run from the command prompt. All software is written in C; the compiler is mingw (regularly updated). The first attempt was a program, in C, that shows the user a menu. The user types a single digit and a program is run. The C program relies on the system() function. The problem is that the new environment uses Windows on a 64 bit platform. mingw uses Microsoft's libraries and either I'm just too dumb to understand that new stuff or system() is broken. Now mingw also includes support for ADA. The last time I wrote something in ADA was in 1984. Anyway, ADA looks a lot more like Algol than C so I hope that ADA may help me here. More specifically: does ADA have support for a function similar to C's system()? Example: int main(void) { int retval; retval=system("copy h:\*.* g:\"); printf("return value %d\n",retval); return EXIT_SUCCESS; } Regards, Hans Vlems PS the example lacks #include statements so won't compile