Jump to content
Sign in to follow this  
willwatters

How to start a program

Recommended Posts

willwatters

How do you start MS Office (D:\documents and settings\All Users\Start Menu\Microsoft Office.lnk)

Thanks

Share this post


Link to post
Share on other sites
MHz

Run(@ProgramFilesDir & '\Microsoft Office\Office10\WINWORD.exe', @ProgramFilesDir & '\Microsoft Office\Office10')

Run ( "filename" [, "workingdir" [, flag]] )

Something like this should do it. You may need to edit it to your location of office.

Share this post


Link to post
Share on other sites
Chris_1013

If you want to be lazy...

$shortcut = FileGetShortCut("D:\documents and settings\All Users\Start Menu\Microsoft Office.lnk")

Run($shortcut[0],$shortcut[1])

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  

×