Page 1 of 1

Starting Another program

Posted: Fri Mar 06, 2009 5:16 am
by chriswood
I am trying to start a windows MS Access mde file on the press of a button, which I can do but it always launches as a restored window, ideally it should be maximized.

I have tried Launch, Launch document, open process (this opens MS Access maximized but not the mde file).

Any suggestions?

Best Regards

Chris

Posted: Fri Mar 06, 2009 9:12 am
by SparkOut
Does it work if you do something like starting by getting the Windows shell to issue the command line "start" instruction with the /MAX switch?

Code: Select all

put "<<your path/your file.mde>>" into tApp
set the hideConsoleWindows to true
get shell ("start /MAX" && quote & quote && quote & tApp & quote)
--the "extra" quotes are because the first quoted parameter passed to "start"
--are used as the console window title - so there's an empty "title" parameter here

Posted: Sat Mar 07, 2009 2:08 pm
by chriswood
That worked a treat, many thanks

Chris