在Windows中自带的cmd中使用
del /F /S /Q .\\file
需要在c++中调用的,可以使用
string mvfile1 = "del /F /S /Q .\\" + filename;
cout << mvfile1 << endl;
std::system(mvfile1.c_str());
在Windows中自带的cmd中使用
del /F /S /Q .\\file
需要在c++中调用的,可以使用
string mvfile1 = "del /F /S /Q .\\" + filename;
cout << mvfile1 << endl;
std::system(mvfile1.c_str());