目标:使用CMD删除檔案夾内的包含特定字元串的檔案
1.使用cmd擷取輸入的變量
2.将變量拼接成所需要的位址
3使用del進行删除檔案
rem 1.input the pn
@echo off
:begin
rem get the input
set input=
set foloer=C:\Users\\111\123\
set /p input=plear input PN:
rem ourt the information
echo Please confirm:%input%
echo %foloer%%input%*
echo
rem del the pn in folder
del %foloer%%input%*
pause
rem