itias Posted April 7, 2011 Share Posted April 7, 2011 Hello, I came across the following issue: I have a script that works perfectly well on XP, which removes bandwidth limitation for a while in order to perform faster WSUS update while setting up a new machine. When launching on Win 7 I get the following error message: "Windows cannot find 'wuauclt.exe'. Make sure you typed the name correctly, and then try again.". Here is a line in question: ShellExecute("wuauclt.exe","/DetectNow") Full path does not help either (ie. "c:\windows\system32\wuauclt.exe"). Has anyone got any clue, what the reason could be? Or in other words, how to launch that command? BTW, it works perfectly well from command line... Thanks Greg Link to comment Share on other sites More sharing options...
AdmiralAlkex Posted April 7, 2011 Share Posted April 7, 2011 Hi and Welcome to the forums!Let me guess, you are runnning a x86 script on x64 Windows? Please note that wuauclt.exe is in \system32\ so it's a x64 app. You either need to add #AutoIt3Wrapper_UseX64=y to make sure your script run/compile to x64, or use the DllCall() on the page "Running under Windows 64-bit Edition" in helpfile if you insist on using x86 scripts.If you have no idea why I just said that, then go read the aforementioned page in helpfile, follow it's msdn link and read that too.Reading some pages from Programming Guide for 64-bit Windows might be interesting too. .Some of my scripts: ShiftER, Codec-Control, Resolution switcher for HTC ShiftSome of my UDFs: SDL UDF, SetDefaultDllDirectories, Converting GDI+ Bitmap/Image to SDL Surface 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