Mean Posted September 30, 2011 Posted September 30, 2011 Im trying to run wuauclt.exe on a 64 bit machine. The strange thing is I get a "file not found" error. So I start a cmd from my script and run a "dir" in the system 32 folder and the file is missing??? I run cmd from the startmenu and run a dir in the system32 folder and the file is there. I compare the two command prompts and there is a bunch of files missing in one of them. What is going in here???
hannes08 Posted September 30, 2011 Posted September 30, 2011 Hi Mean, let me guess that you are running this on a 64bit operating system. If you compiled your exe as a 32bit program you'll see the files from \windows\system32. If running it from a 64bit program you'll see the contents of the \windows\SysWOW64 folder. It's not a bug it's a feature. Regards,Hannes[spoiler]If you can't convince them, confuse them![/spoiler]
Mean Posted September 30, 2011 Author Posted September 30, 2011 Hi Mean, let me guess that you are running this on a 64bit operating system.If you compiled your exe as a 32bit program you'll see the files from \windows\system32.If running it from a 64bit program you'll see the contents of the \windows\SysWOW64 folder. It's not a bug it's a feature. Yes I am making a 32 bit app. But the files cant be found in the \windows\SysWOW64 folder ether.
hannes08 Posted September 30, 2011 Posted September 30, 2011 Maybe you want to show us the part of your code where you have the problem with. Regards,Hannes[spoiler]If you can't convince them, confuse them![/spoiler]
Mean Posted September 30, 2011 Author Posted September 30, 2011 (edited) %windir%\SysnativeMaybe you want to show us the part of your code where you have the problem with.it just one lineRunWait("wuauclt.exe /resetauthorization /detectnow") I found out how to do it after the 64 bit pointer RunWait(@WindowsDir &"\sysnative\wuauclt.exe /resetauthorization /detectnow") Edited September 30, 2011 by Mean
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