The code is as follows:
@echo off
@set /p char=Enter the file name to search for:
@echo Searching, please wait...
@for %%a in (c d e f) do for /f "tokens=*" %%i in ('dir /s/b/a-d %%a:\%char%') do echo %%i & start "%%i"
pause
For example, when entering QQ.exe, it can be found but cannot be directly run? While in win+r cmd start qq.exe can run it without the path, I find it very strange. Please ask an expert for guidance~ Thank you
@echo off
@set /p char=Enter the file name to search for:
@echo Searching, please wait...
@for %%a in (c d e f) do for /f "tokens=*" %%i in ('dir /s/b/a-d %%a:\%char%') do echo %%i & start "%%i"
pause
For example, when entering QQ.exe, it can be found but cannot be directly run? While in win+r cmd start qq.exe can run it without the path, I find it very strange. Please ask an expert for guidance~ Thank you
