本帖最后由 ygqiang 于 2015-12-4 11:00 编辑
[已解决]批处理代码,如果文件目录名,含有空格,应该如何修改?谢谢。。- for %%a in (Temp;History;"Application Data";"Temporary Internet Files") do (
- del /f /s /q /a "%userprofile%\Local Settings\%%a\*.*" >nul 2>nul
- rd /s /q "%userprofile%\Local Settings\%%a" >nul 2>nul
- md "%userprofile%\Local Settings\%%a" >nul 2>nul
- )
复制代码
|