Sign in to follow this  
Followers 0
inspu

Start a program from Start Menu

9 posts in this topic

How I can start Outlook from start Menu using AutoIT?

Share this post


Link to post
Share on other sites



Hello inspu,

Welcome to AutoIt!

Why do you want to run Outlook from the Start Menu?

You can run it from its actual location using the function Run()

Realm


My Contributions: Unix Timestamp: Calculate Unix time, or seconds since Epoch, accounting for your local timezone and daylight savings time. RegEdit Jumper: A Small & Simple interface based on Yashied's Reg Jumper Function, for searching Hives in your registry.  

Share this post


Link to post
Share on other sites

Sorry,Outlook I gave an example.

I have a application mtr and after installation this will display in Windows Start.

This is located@C:\Program Files\MTR\mtr.msc

I need to start this.This tried using Run and Runwait.I could,nt start.Please help me

Share this post


Link to post
Share on other sites

The run command only works for executables. What you are trying to run has an .msc extension, so you must run it a different way. Try this:

Run(@ComSpec & " /c " & @ProgramFilesDir & "\MTR\mtr.msc", "", @SW_HIDE)

#include <ByteMe.au3>

Share this post


Link to post
Share on other sites

Thanks for the reply,but still this didnt works for me....

I tried Run(@ComSpec & " /c " & @ProgramFilesDir & "\MTR\bin\mtr.msc", "", @SW_HIDE)

Correct me if I am wrong...

Share this post


Link to post
Share on other sites

One more thing is my application will display in Start->Programs->MTR->mtr.

Can start the program from here..

Share this post


Link to post
Share on other sites

Try :

Shellexecute("C:\Program Files\MTR\mtr.msc")

Share this post


Link to post
Share on other sites

Thanks...it is working...Looks like I came to the right place for starting my automation...AutoIT is a Powerful one and in this forum lot of Masters are available...:-)

Share this post


Link to post
Share on other sites

Hello inspu,

I would recommend that you take a look at the many tutorials that are available on the web or here in the forum. It makes it a lot easier to learn the language. :unsure:

I wish you a good start with AutoIT.


Regards,Hannes[spoiler]If you can't convince them, confuse them![/spoiler]

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