S.H.A.D.O.
Well-known Member
- Joined
- Sep 6, 2005
- Messages
- 1,915
Good evening,
I hope this is the right place to post this?
I want to run the below command in a batch script.
It does actually work fine but I have to press "OK" for it to continue or "Cancel" to not.
How can I adapt the script below so it automatically presses the "OK" for me in the script please?
I don't want the popup box to appear.
I have tried /Q at the end, I have also tried Click [OK] but to no avail.
Any help will be greatly appreciated.
Thanks in advance.
I hope this is the right place to post this?
I want to run the below command in a batch script.
It does actually work fine but I have to press "OK" for it to continue or "Cancel" to not.
How can I adapt the script below so it automatically presses the "OK" for me in the script please?
I don't want the popup box to appear.
I have tried /Q at the end, I have also tried Click [OK] but to no avail.
Any help will be greatly appreciated.
Code:
echo off
echo.
echo [12] Running extended cleanup...
cd C:\windows\system32
%SystemRoot%\System32\Cmd.exe /c Cleanmgr /sageset:65535 & Cleanmgr /sagerun:65535
echo. & echo This process completed successfully. & echo. & pause & cls
exit
Thanks in advance.