Sign in to follow this  
Followers 0
mikethetechguy

Shortcut with Parameters, trouble running

5 posts in this topic

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?

Share this post


Link to post
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")

Share this post


Link to post
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

Share this post


Link to post
Share on other sites

you guys are gods, totally fixed my issue and taught me a lot!

Share this post


Link to post
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
Sign in to follow this  
Followers 0