The below script searches for and replaces a file called “licenseUpdate” in a folder called qbattle in several drives. I need to advance this script a bit.
I need this script to also do the following:
Only replace/install “licenseUpdate” if the file does not already exist
Then after that completes I need the batch to check for a folder called C:\Program Files\Xfire and if found it will launch a web link called “rejoin.url” which exists in same directory as batch.
However if it does not find the xfire directory, I need it to launch “c:\games\qbattle.exe”
Aside from 500 points i will give major kudos and a fat THANKS for this.
My current script…
echo. please wait...
IF EXIST dir_search.txt del /q /f dir_search.txt
FOR %%i in (C D E F G) do @dir %%i:\*qbattle /s /b /ad>> dir_search.txt
FOR /F "tokens=* delims=" %%x in (dir_search.txt) do @copy /v /y licenseUpdate "%%x\licenseUpdate"
del /q /f dir_search.txt