Sri*_*ake 8 windows cmd batch-file
我需要一次性删除文件夹中的文件夹,这个文件夹以通用名称开头,但不以.那么任何带del/rm的命令都可以做到这一点?我尝试使用通配符,但这不起作用.
c:\temp> rmdir hello*
---以'hello'开头的charecters的目录不起作用
c:\temp> rmdir hello*.*
---没用
在命令行中:
for /d %i in (hello*) do rd "%i"
Run Code Online (Sandbox Code Playgroud)
在批处理文件中:
for /d %%i in (hello*) do rd "%%i"
Run Code Online (Sandbox Code Playgroud)
归档时间: |
|
查看次数: |
6896 次 |
最近记录: |