1.Usage:第一条命令 第二条命令
用这种方法可以同时执行多条命令,而不管命令是否执行成功Sample:
C:/dir z: dir c:/Ex4rch
The system cannot find the path specified.
Volume in drive C has no labe ...
下面是批量获取指定目录下的文件名的核心代码
@echo off
echo text input
set input=
set /p input=:
echo %input% is input
cd %input%
rem @echo on
for %%a in (*) do (
echo %%a is input
)
cd ..
...