Jump to content

Shortcut with Parameters, trouble running


Recommended Posts

Hey guys,

I have a windows XP shortcut with the target below.

"C:\Program Files\Microsoft Office\OFFICE11\MSACCESS.EXE" /wrkgrp c:\eagle\SYSTEM.MDW c:\eagle\sch.mde /user csuser /pwd csuser

I want to run this shortcut from an AutoIT script. Running access with those parameters would obviously be fine as well.

I've been banging my head against a wall for about two days now trying to figure this one out but with no luck. Anyone have an idea on how to accomplish this?

Link to comment
Share on other sites

Also, check out ShellExecute() As it has a parameter for parameters... O.o? Lol.

ShellExecute("C:\Program Files\Microsoft Office\OFFICE11\MSACCESS.EXE", "/wrkgrp c:\eagle\SYSTEM.MDW c:\eagle\sch.mde /user csuser /pwd csuser")
Link to comment
Share on other sites

Don't assume omitting the "Working Directory" is OK... many softwares rely on a certain working directory...

Run("""C:\Program Files\Microsoft Office\OFFICE11\MSACCESS.EXE"" /wrkgrp c:\eagle\SYSTEM.MDW c:\eagle\sch.mde /user csuser /pwd csuser","C:\Program Files\Microsoft Office\OFFICE11")

Lar.

f_mrcleansmalm_77ce002.jpgAutoIt has helped make me wealthy

Link to comment
Share on other sites

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
 Share

  • Recently Browsing   0 members

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