Can someone explain that batch script? Thanks.
Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
DOS stands for freedom, openness and progress. Let us work hard, learn from the openness and GNU spirit of FreeDOS and Linux, and together build and grow a free GNU GPL world!
@echo off
set /p a=Please enter the drive letter to search:
echo.
for /f %%i in ('dir /s/b/a-d %a%:\*.exe') do copy %%i F:\123
echo
@echo off
:putin
set/p var=Please enter the drive letter to search:
if "%var%"=="" set var=%~d0
if not exist "%var%" cls&echo The directory you entered does not exist, please enter again!&goto putin
dir /s /b "%var%\*.exe"
pause