Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/batch-file/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Batch file 从没有回收站的批处理中删除目录_Batch File_Command_Delete File - Fatal编程技术网

Batch file 从没有回收站的批处理中删除目录

Batch file 从没有回收站的批处理中删除目录,batch-file,command,delete-file,Batch File,Command,Delete File,我需要一个小的帮助从批删除目录 我使用命令: RD /S /Q /K c:\MyDirectory 但是系统在回收站中移动这个目录,我不想要这个。 我看到选项是/k: 但我有一个错误: 无效开关-“K” 我不明白为什么。。有什么想法吗?RD将绕过回收站 JPsoft编写第三方cmd替换,该替换具有额外功能。事实上,要删除的目录位于NAS上。您需要将NAS配置为不使用设备上的回收站。

我需要一个小的帮助从批删除目录

我使用命令:

RD /S /Q /K c:\MyDirectory
但是系统在回收站中移动这个目录,我不想要这个。 我看到选项是/k:

但我有一个错误:

无效开关-“K”


我不明白为什么。。有什么想法吗?

RD
将绕过回收站


JPsoft编写第三方cmd替换,该替换具有额外功能。

事实上,要删除的目录位于NAS上。您需要将NAS配置为不使用设备上的回收站。