kenz 0 Posted November 2, 2004 I'm trying to run an .MDE file from a script. I tried just using the Run command but that doesn't work. I'd rather not Run Access with an argument since Access could possibly be installed in diffferent places. Any ideas? Thanks Share this post Link to post Share on other sites
Jos 2,165 Posted November 2, 2004 I'm trying to run an .MDE file from a script. I tried just using the Run command but that doesn't work. I'd rather not Run Access with an argument since Access could possibly be installed in diffferent places. Any ideas? Thanks<{POST_SNAPBACK}>try using Run(@comspec & " /c start file.mde", "", @SW_HIDE) SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Share this post Link to post Share on other sites
kenedy 0 Posted November 2, 2004 (edited) Try this: Run (@ComSpec & " /c file.mde") Heh, too late Edited November 2, 2004 by kenedy Share this post Link to post Share on other sites
normeus 0 Posted November 2, 2004 this one works with win98: Run("start c:\windows\desktop\1.jpg","", @SW_HIDE) can't I get a cup of coffee with out someone posting an anwser? (this is for a jpg file but you know what to do to change it to a ".mde" file ) http://www.autoitscript.com/autoit3/scite/...iTe4AutoIt3.exe Share this post Link to post Share on other sites
kenz 0 Posted November 2, 2004 I tried that but the problem I'm having is that the MDE file is on a network drive. When it tries to execute I get and error about the cmd.exe trying to run from a UNC path which is not supported. Share this post Link to post Share on other sites
kenedy 0 Posted November 2, 2004 I'd rather not Run Access with an argument since Access could possibly be installed in diffferent places.You don't have to know where Access is to launch it. (try Start>Run>msaccess)Therefore:Run (@ComCpec & " /c start msaccess argument") Share this post Link to post Share on other sites
kenz 0 Posted November 2, 2004 You don't have to know where Access is to launch it. (try Start>Run>msaccess)Therefore:Run (@ComCpec & " /c start msaccess argument")<{POST_SNAPBACK}>Thanks guys. Kenedy's suggestion worked. Share this post Link to post Share on other sites