Main Forum > Tweaking.com Support & Help
Nag Icon Win10
Shane:
--- Quote ---It kills gwx.exe but doesn't rename to GWX_Old. I am the admin and have full rights. Manually rename should be fine?
--- End quote ---
Yes manually renaming it should be fine.
I wonder why ren was having a hard time with the path, worked fine on my system but maybe something else is going on. If you remove the echo off and put the word pause at the end of the bat file instead of exit it will keep the cmd window open ad we can see what errors it shows, I would like to see those so I can update the bat file :-)
Shane
Shane:
So get this, I am testing out the bat file again, this time on windows 8.1 in vmware. The command ren or rename simply refuses to see the GWX folder, yet I can make a folder called GWX2 in the system32 folder and ren has no trouble seeing it and renaming it. Yet it refuses to work on the main GWX folder, I even changed all the permissions on the folder and it still wont take.
So either MS put something in that makes ren not see the folder or something else is going on. I will let you know what I find out, I am also going to try Sundavor script of using robocopy to copy the files to the folder and then remove the old one.
Shane
Shane:
Sundavors script works, while ren has been blocked the robocopy and rmdir commands have not. So great find on this one Sundavors :wink:
So I will update the page and bat file with the new script, I also changed the take ownership command as well, here will be the new script
--- Code: ---Echo off
taskkill.exe /F /IM "gwx.exe"
takeown /a /r /skipsl /d Y /f "%windir%\System32\GWX" && icacls "%windir%\System32\GWX" /grant administrators:F
robocopy "%windir%\System32\GWX" "%windir%\System32\GWX_Old" /E
rmdir /s /q "%windir%\System32\GWX"
exit
--- End code ---
Shane
Navigation
[0] Message Index
[*] Previous page
Go to full version