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.
我正在使用 deltree 命令,它希望用户使用 Y 或 N 进行确认。
我试过'echo Y | deltree ....' 但出现“进程试图写入不存在的管道”错误。
还有其他方法吗?
删除树 /Y ...
/S = 除目录本身外,删除指定目录中的所有目录和文件。用于删除目录树。
/Q = 安静模式,不要询问是否可以使用 /S 删除目录树。