mikethetechguy Posted April 16, 2008 Share Posted April 16, 2008 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 More sharing options...
junkew Posted April 16, 2008 Share Posted April 16, 2008 Run("C:\Program Files\Microsoft Office\OFFICE11\MSACCESS.EXE /wrkgrp c:\eagle\SYSTEM.MDW c:\eagle\sch.mde /user csuser /pwd csuser") FAQ 31 How to click some elements, FAQ 40 Test automation with AutoIt, Multithreading CLR .NET Powershell CMDLets Link to comment Share on other sites More sharing options...
Swift Posted April 16, 2008 Share Posted April 16, 2008 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 More sharing options...
LarryDalooza Posted April 16, 2008 Share Posted April 16, 2008 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. AutoIt has helped make me wealthy Link to comment Share on other sites More sharing options...
mikethetechguy Posted April 17, 2008 Author Share Posted April 17, 2008 you guys are gods, totally fixed my issue and taught me a lot! 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