Forums > MaxMSP

Starting an .exe


Jan 17 2009 | 4:53 pm

Is there a way to trigger an .exe file from within MAX? I need to start an independent program written in PowerBasic that processes a text file created by MAX.

Any help would be appreciated.

Jan 17 2009 | 5:55 pm

Quote: newdendrite wrote on Sat, 17 January 2009 10:53
—————————————————-
> Is there a way to trigger an .exe file from within MAX? I need to start an independent program written in PowerBasic that processes a text file created by MAX.
>
> Any help would be appreciated.
—————————————————-

The only thing I can think to try is a message to max:
; max launchbrowser [filename.exe]

I couldn’t get it to work for notepad.exe on windows. Usually it opens a web browser to read an html page, but if you use a .doc file, it’ll open up Word (or OpenOffice which I use and love :)

So there seems to be some smarts there which will open the proper (I guess OS-selected app) for a given file type, but at least on a quick try, it didn’t launch an actual .exe itself.


f.e
Jan 17 2009 | 10:23 pm

Jan 17 2009 | 10:47 pm

Quote: f.e wrote on Sat, 17 January 2009 22:23
—————————————————-
> Use [launchurl] by Bill Orcutt.

I think [launchurl] only open programs that respond to urls (FTP clients, web browsers, mail clients, etc.) I could have sworn I had heard of an internal object that allowed for this…


f.e
Jan 18 2009 | 11:39 am

Jan 18 2009 | 6:43 pm

launchURL works great! Unfortunately the help file does not explicitly indicate that it can be used in that way. This will make life much easier.

Many, many thanks for the help!

Jan 22 2009 | 9:39 pm

Jan 23 2009 | 1:31 am

Quote: stefantiedje wrote on Thu, 22 January 2009 15:39
—————————————————-
> Seejay James schrieb:
> > The only thing I can think to try is a message to max: ; max
> > launchbrowser [filename.exe]
> >
> > I couldn’t get it to work for notepad.exe on windows. Usually it
> > opens a web browser to read an html page, but if you use a .doc file,
> > it’ll open up Word (or OpenOffice which I use and love :)
>
> Banging a message [; launchbrowser filename.txt] would open notepad. You
> can’t start the application directly, but indirectly by launching a
> document. This is plain Max…
>
> Stefan
>

That’s great to know, thanks! -C

Viewing 8 posts - 1 through 8 (of 8 total)

Forums > MaxMSP