【发布时间】:2023-05-24 13:38:01
【问题描述】:
我想创建一个批处理文件来删除或删除文件夹C:\temp\root\students\type1、其子文件夹和所有文件。
我拥有的文件夹和文件如下:
C:\temp
C:\temp\root
C:\temp\root\students
C:\temp\root\tutors
C:\temp\root\students\type1
C:\temp\root\students\type2
C:\temp\root\tutors\type1
C:\temp\root\tutors\type2
C:\temp\root\students\type1\details.txt
C:\temp\root\students\type1\assignment1
C:\temp\root\students\type1\assignment1\results.txt
文件夹C:\temp\root\students\type1\assignment1 在批处理文件中指定。
我想上一个文件夹/目录并删除或删除我的批处理文件 (test.bat) 中的 C:\temp\root\students\type1。
请帮帮我。
【问题讨论】:
-
C 是一种编程语言,而不是任何硬盘驱动器。这不应该被标记为 C。
-
您现有的批处理文件命令在哪里?只需更改文件夹以符合您的需要
标签: windows batch-file cmd