Sign in to follow this  
Followers 0
Guest scottz

Run Command And Control Panel Applets

3 posts in this topic

#1 ·  Posted (edited)

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

Share this post


Link to post
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.

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

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?

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