1.直接上代码 #include<stdio.h> #include<Windows.h> int main() { system("rd C:\\Desktop\\remove /s/q"); return 0; } /s,递归删除文件及文件夹,/q,直接删除文件及文件夹