Sign in to follow this  
Followers 0
chiners_68

Help- Cannot get program to run..

7 posts in this topic

I need to run a progrma from my script. the shortcut for the program has the line

"C:\Program Files\Microsoft Office\ART\Office\MSACCESS.EXE" /runtime /wrkgrp "C:\Program Files\CompassCC\ProAchieve\CCC.MDW" "C:\Program Files\CompassCC\ProAchieve\ProAchTarg.MDE"

how can i get this to run in autoit..?

if i run this from the run command C:\Program Files\CompassCC\ProAchieve\ProAchTarg.MDE it opens the program. if i put this line alone in autoit, it wont run..

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

try

Run("C:\Program Files\Microsoft Office\ART\Office\MSACCESS.EXE " & /runtime /wrkgrp " & "C:\Program Files\CompassCC\ProAchieve\CCC.MDW" & "C:\Program Files\CompassCC\ProAchieve\ProAchTarg.MDE")

Edited by iceberg

mouse not found....scroll any mouse to continue.

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

run("C:\Program Files\Microsoft Office\ART\Office\MSACCESS.EXE /runtime /wrkgrp C:\Program Files\CompassCC\ProAchieve\CCC.MDW C:\Program Files\CompassCC\ProAchieve\ProAchTarg.MDE") doesn't work ?

(ie. remove the " except where it's needed. )

The problem might be that it will not understand the spaces, in which case you might try the 8.3 equvivalent, (ie. Program Files = Progra~1) or perhaps using ' around the long filenames. (I can't verify ATM)

Edited by jinxter

> there are 10 types of people in the world, those who understand binary and those who don't.

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

Wrap the whole command in single quotes, or since it is so long, then add some continuation characters as well to spread across more then one line.

Run('"C:\Program Files\Microsoft Office\ART\Office\MSACCESS.EXE"' & _
        ' /runtime /wrkgrp ' & _
        '"C:\Program Files\CompassCC\ProAchieve\CCC.MDW" ' & _
        '"C:\Program Files\CompassCC\ProAchieve\ProAchTarg.MDE"')
Edited by MHz

Share this post


Link to post
Share on other sites

now getting an error from Access

post-11796-1159186214_thumb.jpg

Share this post


Link to post
Share on other sites

MHz,

your one worked...

cheers

Share this post


Link to post
Share on other sites

#7 ·  Posted (edited)

Try using the workingdir parameter in the Run() function.

Edit:

Cool, glad it worked. The workingdir is usually a good idea for installed programs. :)

Edited by MHz

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