This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.


Hi,

Sorry about the late sum but as this particular problem was more of a
nuisance issue for myself it took a while for me to get around to look into
the responses.
Thanks to Mark Crompton and Trey Patillo for responding.

Original Question:
- When using the MapBasic command 'Run Program' and .BAT files to issue DOS
commands does anyone know of a way to keep the DOS window from appearing?

Responses:
- Both Mark and Trey suggested that I need to use the Windows API to so.

What I did:
- I did try and use the DOS Batch commands ' @echo off '  and ' >null ' in
my .BAT files but although nothing is output to the DOS window it opens
nonetheless.
- Because of the responses I received I used the WinAPI CreateDirectory and
CopyFile Functions. For more info on these functions see the notes below.
- Utilizing WinAPI functions is a little more involved than issuing DOS
commands but once you figure it out it is worth the effort. By not issuing
DOS commands you avoid opening the DOS window and because you are calling a
function MapBasic waits for the return value before proceeding. 

Notes:
- A good WinAPI reference site is http://www.vbapi.com/ref/index.html
- Trey Patillo also has information on using the WinAPI in MapBasic at
http://www.wap3.com/_WinAPI/index2.htm 

Thanks,
Scott



_______________________________________________________________________
List hosting provided by Directions Magazine | www.directionsmag.com |
To unsubscribe, send e-mail to [EMAIL PROTECTED] and
put "unsubscribe MapInfo-L" in the message body.

Reply via email to