Bill (and summary below for the list), Thanks, that got it working except for the fact that it doesn't like spaces anywhere in the filename or path. Weird, but maybe it's a Win2k issue with batch files.
I noticed going through the threads that you once asked for a way to launch the .mbx without starting up another copy of mapinfo. I solved it (sort of) this way...I created a little mapbasic app that puts a "launch" pushbutton on mapinfo's standard button pad docked at the top. This button is programmed to launch the .mbx of whatever application I'm working on. I then position the top of the UltraEdit application window just below the bottom of that button in the MapInfo window. After I compile in UltraEdit, I press this 'L' button in MapInfo which simultaneously brings MapInfo to the foreground and launches the app with one mouse click! It works for me, but if you or anyone has since found a better way, then let me know... Thanks Again, Chris -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Bill Thoen Sent: Tuesday, October 30, 2001 7:29 PM To: [EMAIL PROTECTED] Subject: Re: MI-L Problems setting up UltraEdit Christopher DuBuc wrote: > > Ammended Question: > > After further testing, my problems are these two: > > 1)I can't compile a file located in a directory path with spaces in it. > (Even though I have quotes in my tool command line per below) > > 2)If I take out the "start /wait" part of the batch file it seems to > compile o.k. (as long as the filename/path has no spaces in it). But > wasn't the "start /wait" put in there for an important reason? i.e. In > order to wait for the compiler to finish before editing the error > report? > > Thanks again, > > Chris > > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED]] On Behalf Of Chris > DuBuc > Sent: Tuesday, October 30, 2001 3:31 PM > To: [EMAIL PROTECTED] > Subject: MI-L Problems setting up UltraEdit > > List, > > Alright, you all peaked my interest in UltraEdit..so I installed it and > searched the MapInfo-L archives for directions on how to set it up to > compile MapBasic. > > I created my batch file as such: > > start /wait "C:\Program Files\MapInfo\MapBasic\Mapbasic.exe" -D "%1" > type "%2" > > and set up my user tool in UltraEdit as such: > > "C:\Test\MI_Compile.bat" "%f" "%p%n.err" > > I'm having two big problems: > > 1)The command line doesn't like the space in "C:\Program Files\..." even > though I have quotes in the textbox per above. (Notice I had to put the > batch file in "c:\test" to overcome this) > > 2)When I run my tool to compile a simple test .mb I get the error > message "Cannot find the file -D or one of it's components....". When I > take out the "-D" from my batch file it launches MapBasic with the file, > but alas it doesn't compile. I assume the "-D" parameter is a code of > some sort telling MapBasic to compile the file, but it doesn't seem to > be working in my case. Am I missing something? > > Running Win2000 Pro and MapInfo/MapBasic 6.5. > > Any and all help is greatly appreciated. Try this: Create this batch file and put it in your mapbasic directory: @Echo off start/wait MAPBASIC.EXE -NOSPLASH -D %1.mb if exist %1.err type %1.err Then in the UltraEdit Tool configuration put this in the Command Line Edit control: "C:\Program Files\MapInfo\MI_Compile.bat" "%p%n" Leave the Working Directory blank, name it something like "MapBasic Compile", uncheck "Check if Windows Program", check "Save all files first", and check "Output to List box" and "Capture Output", and save it. Also, disable Norton anti virus if you're using it. NAV doesn't like UE's way of running DOS files and it gives your machine a grande mal seizure. I'm using Win98, and this works for me. To the most out of this, you also might want to modify WordFile.txt and add a language definition for MapBasic. I've got it set up for MapBasic 6.5 already if you want a copy. -- - Bill Thoen ------------------------------------------------------------ GISnet, 1401 Walnut St., Suite C, Boulder, CO 80302 tel: 303-786-9961, fax: 303-443-4856 mailto:[EMAIL PROTECTED], http://www.gisnet.com/ ------------------------------------------------------------ _______________________________________________________________________ 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. _______________________________________________________________________ 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.
