Jump to content

Start a program from Start Menu


Recommended Posts

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. 

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

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

Link to comment
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]
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...