MSFN is made available via donations, subscriptions and advertising revenue. The use of ad-blocking software hurts the site. Please disable ad-blocking software or set an exception for MSFN. Alternatively, register and become a site sponsor/subscriber and ads will be disabled automatically.
xranger replied to centi50's topic in Unattended Windows 7/Server 2008R2Thank you,Yzowl.. You 're right..I retested the batch file, it works well now..that's odd,maybe I forgot restarting my system after patching Sp1 Anyway.thank again
xranger replied to centi50's topic in Unattended Windows 7/Server 2008R2hi,Yzowl. I am a newbe here..your code is awesome thanks a lot. But I just got a little problem,when I tested this batch by choosing "run as administrator"(windows7 x64) in a folder with all MSU and EXE update files, .bat processed and listed them, but in fact none of them was actuelly installed. Then I tried to add "cd /d %~dp0" to change the path at the beginning before your code, and it worked finally. But in your code these is already "FOR /R "%~dp0" %%A IN (*-KB*.MSU) DO (" , looks like this parte doesn't work for me, I dont understand why, could you please explain? PS: your second code for .exe file updating woks well.