icecom4
asked on
make search and edit batch script faster...
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...
@echo off
(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
)
)
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...
@echo off
(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
)
)
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.