Peter Horsb�ll M�ller wrote:

> My bat file looks like this:
> @Echo off
> "C:\MapBasic\MapBasic 4.0\Mapbasic.Exe" -NOSPLASH -D ""%1.mb""
> if exist ""%1.err"" type ""%1.err""
>
> Do remember to alter the path to the MapBasic.exe if you have it placed somewhere 
> else. Appearently the Start/wait doesn't work if you are using a full path ? Also do 
> remember in the tool configuration to uncheck to "Windows Program" checkbox.

The start/wait does indeed mess up when you use a full path with a space in it -- 
particularly with XP. The workaround is to lose the quotes around the Mapbasic.exe 
parameter and use the old style "spaceless" path names, e.g.:

start/wait c:\progra~1\mapinfo\mapbasic.exe -NOSPLASH -D ""%1.mb""

or if you want to use the default version of mapbasic, you can leave off the path 
altogether, like so:

start/wait mapbasic.exe -NOSPLASH -D ""%1.mb""

If you don't use the start/wait command, the following "if exist..." line may execute 
before the compiler finishes and you might still miss an error message.

- Bill Thoen





---------------------------------------------------------------------
List hosting provided by Directions Magazine | www.directionsmag.com |
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Message number: 9529

Reply via email to