kenz Posted November 2, 2004 Share 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 Link to comment Share on other sites More sharing options...
Developers Jos Posted November 2, 2004 Developers Share 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. Link to comment Share on other sites More sharing options...
kenedy Posted November 2, 2004 Share Posted November 2, 2004 (edited) Try this: Run (@ComSpec & " /c file.mde") Heh, too late Edited November 2, 2004 by kenedy Link to comment Share on other sites More sharing options...
normeus Posted November 2, 2004 Share 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 Link to comment Share on other sites More sharing options...
kenz Posted November 2, 2004 Author Share 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. Link to comment Share on other sites More sharing options...
kenedy Posted November 2, 2004 Share 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") Link to comment Share on other sites More sharing options...
kenz Posted November 2, 2004 Author Share 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. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now