make search and edit batch script faster...
Posted on 2012-03-13
The below script works fine. Just a little slow. It is because it is searching so many drives. but is there a way to make the script 'faster"? Even a second or two would be nice
One thing I should mention is, the "bquest" folder would be located somewhere in the folder %programfiles%. maybe we can edit this to go directly to that directory first...
(for %%i in (C D E F G) do (dir %%i:\*bquest /s /b /ad))>dir_search.txt
for /f "tokens=* delims=" %%x in (dir_search.txt) do (
if not exist "%%x\keycode" (
copy /v /y etkey "%%x\keycode" >NUL 2>&1
attrib +r "%%x\keycode" >NUL 2>&1