|
Server : Apache/2.4.58 (Win64) OpenSSL/3.1.3 PHP/8.2.12 System : Windows NT SERVER-PC 10.0 build 26200 (Windows 11) AMD64 User : ServerPC ( 0) PHP Version : 8.2.12 Disable Function : NONE Directory : C:/Program Files (x86)/Google/GoogleUpdater/143.0.7482.0/ |
Upload File : |
@echo off rem Deletes recursively the directory specified by the `--dir` command line rem argument of the script. The directory must be an updater install path. echo %1 %2 if not "%1"=="--dir" ( echo "Invalid switch." exit 1 ) set Directory=%2 rem Validate the path is an updater path. @echo %Directory% | FindStr /L \Google\GoogleUpdater > nul if %ERRORLEVEL% NEQ 0 ( echo "Invalid argument." exit 2 ) rem Try deleting the directory 15 times and wait one second between tries. for /L %%G IN (1,1,15) do ( ping -n 2 127.0.0.1 > nul rmdir %Directory% /s /q > nul if not exist %Directory% exit 0 ) exit 3