Jump to content

Recommended Posts

Posted

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

  • Developers
Posted

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.
  :)

Posted

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.

Posted

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")

Posted

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.

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...