Guest scottz Posted February 23, 2004 Share Posted February 23, 2004 (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 February 23, 2004 by scottz Link to comment Share on other sites More sharing options...
Valik Posted February 23, 2004 Share Posted February 23, 2004 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,-ScottRun("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 More sharing options...
sykes Posted February 23, 2004 Share Posted February 23, 2004 (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 February 23, 2004 by psichosis We have enough youth. How about a fountain of SMART? Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now