Hi Hendrik, A BAT file is only a program by association. The real program is the command line interpreter command.com or cmd.exe (dependent on OS)
I'm not sure whether "Run Program" handles associations. Try putting the command line interpreter first in your command string. Best regards / Med venlig hilsen Lars V. Nielsen -------------------------------------------------------- Hvenegaard & Meklenborg Rugaardsvej 55, DK-5000 Odense C Denmark http://www.hvm.dk ----- Original Message ----- From: "Possberg, Hendrik" <[EMAIL PROTECTED]> To: "Mapinfo-List (E-Mail) (E-Mail)" <[EMAIL PROTECTED]> Sent: Tuesday, February 04, 2003 10:21 AM Subject: MI-L Run Program ? Dear List, I would like to start an old DOS Program via a Run Program statement in MI. Therefore I use a *bat file. The program I want to start calls "Makemap.exe" It is started with some parameters "Makemap 10 Input output " -input and output are *.mif files -the extensions are not needed. The command behind the Button in Mapinfo is : Run Program "D:\Mapbasic\RunProgram\Aufruf.bat" Thats inside "Aufruf.bat": cd D:\Mapbasic\RunProgram Makemap 10 Input output Makemap 10 Input output Here is my problem: 1.-Doubleclicking the "aufruf.bat" in the browser starts the DOS program the output files aregenerated and everything is fine. 2.-Calling the *bat from MI via Button the program can not be started. I do not know the reason but i guess it could be because of a wrong path. Does anybody got an idea? Thanks in Advance. Hendrik Po�berg Geodaten Phone: +49-2131-10 97 51 mailto:[EMAIL PROTECTED] __________________________________________________ microm Micromarketing-Systeme und Consult GmbH Hellersbergstr. 14 41460 Neuss Germany Phone: +49-2131-10 97 01 Fax: +49-2131-10 97 77 mailto:[EMAIL PROTECTED] http://www.microm-online.de http://www.micromarketing.de __________________________________________________ Diese Nachricht wurde elektronisch versandt und ist daher auch ohne Unterschrift rechtsg�ltig. Der Inhalt dieser E-Mail enth�lt vertrauliche Informationen. Das Kopieren und die Weitergabe an Dritte ist nicht gestattet. Sollten Sie diese E-Mail irrt�mlich von uns erhalten haben, bitten wir Sie, diese zu vernichten und uns dar�ber zu informieren. Im Voraus vielen Dank. --------------------------------------------------------------------- List hosting provided by Directions Magazine | www.directionsmag.com | To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Message number: 5351 --------------------------------------------------------------------- List hosting provided by Directions Magazine | www.directionsmag.com | To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Message number: 5354
