Jump to content
Sign in to follow this  
Mean

Missing files in system32

Recommended Posts

Mean

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???

Share this post


Link to post
Share on other sites
hannes08

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. :graduated:


Regards,Hannes[spoiler]If you can't convince them, confuse them![/spoiler]

Share this post


Link to post
Share on other sites
Mean

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. :graduated:

Yes I am making a 32 bit app. But the files cant be found in the \windows\SysWOW64 folder ether.

Share this post


Link to post
Share on other sites
hannes08

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]

Share this post


Link to post
Share on other sites
Mean

%windir%\Sysnative

Maybe you want to show us the part of your code where you have the problem with.

it just one line

RunWait("wuauclt.exe /resetauthorization /detectnow")

I found out how to do it after the 64 bit pointer

RunWait(@WindowsDir &"\sysnative\wuauclt.exe /resetauthorization /detectnow")

Edited by Mean

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  

×