Create mbx file via mpbasic code

1,691 views
Skip to first unread message

mcg

unread,
Mar 18, 2009, 7:37:13 PM3/18/09
to MapInfo-L
hi,
i got several mb files and want to compile them to mbx files
is there a way to do it automatically via map basic?
i mean macro routine that would create mbx file for each mb file i
have

thanks in advance
mcg

Uffe Kousgaard

unread,
Mar 19, 2009, 5:03:36 AM3/19/09
to mapi...@googlegroups.com
Hi,

Have a look here:
http://www.lanstorp.com/UltraEdit/MapBasic/MapBasic.htm

What you do is to create a bat file like it is described (just ignore
the ultraedit stuff). Next step is another bat file that calls this one.
It could look like:

call MB_Compile_750 module1
call MB_Compile_750 module2
call MB_Compile_750 module3

Now run this batch file.

Would anyone know where these command-line parameters are documented? In
the example both L, D ad NOSPLASH are used.

Regards
Uffe Kousgaard

Bill Thoen

unread,
Mar 19, 2009, 8:39:20 AM3/19/09
to mapi...@googlegroups.com
Uffe Kousgaard wrote:
> Would anyone know where these command-line parameters are documented? In
> the example both L, D ad NOSPLASH are used.
>

The MapBasic ones (L D, and NOSPLASH) are documented in the MB manual,
but I don't recall where exactly. The DOS stuff is just ancient lore
that was probably written down somewhere on clay tablets, but today all
that's left are some help screens (e.g. add the switch /? to any DOS
command, like DIR /?) and some Google pages.

- Bill Thoen

Uffe Kousgaard

unread,
Mar 19, 2009, 7:52:54 AM3/19/09
to mapi...@googlegroups.com
Actually Tony Pilkington sent the info to me off-list. It is in the mapbasic 4 and 4.5 help files (search for "linking"). In 9.5 I can't find it.

Only D and L was mentioned.

Regards
Uffe

Gentreau

unread,
Mar 19, 2009, 7:04:27 AM3/19/09
to mapi...@googlegroups.com

Actually the clay tablets have been saved inside Windows.

Open a Command Window and type HELP for a list of available DOS commands and
a brief description.
Type HELP followed by a DOS command for detailed descriptions.

If you ever struggle to update files, or intelligently copy them, try typing
HELP XCOPY to see what the old-fashioned stuff can do :)

Once you understand the DOS commands, run Windows Help and search for Batch
Commands.
There's a complete description of how to create and run batch files or
scripts.

Hth

Gentreau

Bill Thoen

unread,
Mar 19, 2009, 12:00:58 PM3/19/09
to mapi...@googlegroups.com
I tried 'HELP' on a Win2K system and it hissed at me.

(Well, really it just spit out an error message that offered no help.)
But even with 'help' working the DOS batch language is so lame compared
to any of the UNIX shell environments that when I need to process lots
of data I find it quicker and easier to move it to a Linux box and do
the donkey work there, and then take it back to Windows where I can feed
the now nicely toasted data to MapInfo.

But I shouldn't dump on DOS because it was designed for a different
world and it had to do a lot in very little memory. But even today if
you don't have access to a better environment, there is still quite a
bit of usefulness in it.

- Bill Thoen

Gentreau

unread,
Mar 19, 2009, 11:31:24 AM3/19/09
to mapi...@googlegroups.com

Win2K, that's so.... last century (does it support 4 digit years?)
:)

DeMooy, Harold A.

unread,
Mar 19, 2009, 1:03:30 PM3/19/09
to mapi...@googlegroups.com

In the 9.5 version of  MapBasicUserGuide.pdf its found on page 57 in the Compiling section/Using Another Editor and subsection “Compiling and Linking Programs From the Command Line”. D,L and Nosplash are covered.

The section following on Linking covers project files and the like for linking multiple modules which gets back to the original poster’s question.

HTH

Harold

 

From: mapi...@googlegroups.com [mailto:mapi...@googlegroups.com] On Behalf Of Uffe Kousgaard
Sent: Thursday, March 19, 2009 5:53 AM
To: mapi...@googlegroups.com
Subject: [MI-L] Re: Create mbx file via mpbasic code

 

Actually Tony Pilkington sent the info to me off-list. It is in the mapbasic 4 and 4.5 help files (search for "linking"). In 9.5 I can't find it.

Uffe Kousgaard

unread,
Mar 19, 2009, 2:55:07 PM3/19/09
to mapi...@googlegroups.com
Works fine here in my W2K server. Prints a list of available commands.

Regards
Uffe Kousgaard

Reply all
Reply to author
Forward
0 new messages