Sign in to follow this  
Followers 0
JandETech

running command-line programs?

3 posts in this topic

Hello,

Does the @ComSpec command replace the following for running command line programs?:

Run("RunDll32.exe shell32.dll,Control_RunDLL wuaucpl.cpl,,1")

and is @ComSpec universal for Win XP, Vista, Win 7?

Thanks for any input

Share this post


Link to post
Share on other sites



I believe @ComSpec works on Win7, but I can't say 100% for sure. Here are two ways to start the control panel you listed:

RunWait(@COMSPEC & " /c Start control wuaucpl.cpl")

or

ShellExecute("control", "wuaucpl.cpl")


#include <ByteMe.au3>

Share this post


Link to post
Share on other sites

Thanks for the quick reply. I'll give it a shot

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