1
我有一个Windows批处理文件,它删除Windows主目录内的一些目录。如何禁止RD确认
REM clear Ivy cache on windows
RD /s %UserProfile%\.grails\2.0.0\projects\core-accounting\plugins
RD /s %UserProfile%\.grails\2.0.0\projects\core-domain-model\plugins
RD /s %UserProfile%\.grails\2.0.0\projects\nemesis-base\plugins
RD /s %UserProfile%\.grails\2.0.0\projects\nemesis-webapp\plugins
RD /s %UserProfile%\.grails\ivy-cache\de.denkformat.grails.plugins\core-accounting
RD /s %UserProfile%\.grails\ivy-cache\de.denkformat.grails.plugins\core-domain-model
但在这种情况下,提示总是询问我是否真的要删除目录。 是否有避免警告?
Jontatas'答案是你所需要的,但它可能是值得一提的是,如果你需要使用CMD功能帮助那么你可以要求它的帮助,例如,在这种情况下输入的命令是“RD /? “这会告诉你/ Q,并解释它的功能。 –