Lars is correct. Try this: Run Program "Command.com /c D:\Mapbasic\RunProgram\Aufruf.bat"
Or if you are using NT, 2000, XP Run Program "Cmd.exe /c D:\Mapbasic\RunProgram\Aufruf.bat" Cameron Possberg, Hendrik wrote:
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 "Command.com /c 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: 5362
