用dos命令创建
md [文件路径][文件名]
C:Usersadmin>md C:Usersadmindesktop est
刷新一下桌面,就可以看见桌面上创建了一个名为test的文件夹。
用c语言创建
1 #include <stdio.h> 2 #include <direct.h> /*mkdir函数需要包含此头文件*/ 3 int main(){ 4 mkdir("C:\Users\admin\desktop\test"); 5 6 7 return 0; 8 }