1.能否在in后面加入路径?
一般是把路径放在/r参数后面,文件的类型放在in里面:
for /R C:\windows %a in (*.exe) do @echo %a
2.如果要获得完整的路径名及文件和后缀名,怎么整?
看看for的帮助!
for /R %a in (*.*) do @echo %~fa
1. Can the path be added after in?
Generally, put the path after the /R parameter, and the file type in in:
for /R C:\windows %a in (*.exe) do @echo %a
2. If you want to get the complete path name, file and suffix name, how to do it?
Take a look at the help of for!
for /R %a in (*.*) do @echo %~fa