Jump to content

Run Command And Control Panel Applets


Guest scottz
 Share

Recommended Posts

Is there a reason why you can't use the run command to execute .cpl files?

You can run them from the command line and Start->Run and thought you should be able to from within autoit.

I get an "Unable to execute the external program" error message when I try.

As an example, do a Start->Run and enter desk.cpl

Thanks,

-Scott

Edited by scottz
Link to comment
Share on other sites

Is there a reason why you can't use the run command to execute .cpl files?

You can run them from the command line and Start->Run and thought you should be able to from within autoit.

I get an "Unable to execute the external program" error message when I try.

Thanks,

-Scott

Run("control.exe desk.cpl")

Run(@ComSpec & " /c start desk.cpl")

And there's a way to use Run32dll.exe but I can't remember the arguments for it.

Link to comment
Share on other sites

run(@SystemDir & "Rundll32.exe Shell32.dll,Control_RUNDLL Desk.cpl") on XP

run(@WindowsDir & "\Rundll32.exe " & @SystemDir & "\Shell32.dll,Control_RUNDLL desk.cpl") on 98

rundll32.exe lives in the Windows directory on Windows 98 and in the System32 directory on Windows XP

Of course you just replace Desk.cpl with whichever control panel applet you want to run

Edited by psichosis

We have enough youth. How about a fountain of SMART?

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...