Jump to content
Sign in to follow this  
JandETech

running command-line programs?

Recommended Posts

JandETech

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
sleepydvdr

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

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.