Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
cd to myFolder 我想从 myFolder 中删除所有以 tmp 开头的文件夹
我怎么能在dos命令中做到这一点?
rmtemp.bat:
FOR /F "tokens=*" %%G IN ('dir /B /O /AD temp*') DO rmdir %%G
仅在存储在 .bat 中时有效,但在 cmd 行中手动输入时无效。