+ 1

How can I delete folder or rename it?

22nd May 2019, 8:44 PM
Miroslav VyĹĄnĂ˝
4 Answers
+ 8
Miroslav VyĹĄnĂ˝ #include <iostream> #include <direct.h> using namespace std; int main(int argc, char** argv) { if (argc < 2) { cerr << "Usage: " << argv[0] << " [dir name]" << endl; return(EXIT_FAILURE); } if (rmdir(argv[1]) == -1) { // Remove the directory cerr << "Error: " << strerror(errno) << endl;; return(EXIT_FAILURE); } } source: https://www.oreilly.com/library/view/c-cookbook/0596007612/ch10s12.html I hope I was helpful
22nd May 2019, 10:29 PM
Alessio Benvenuti
Alessio Benvenuti - avatar
+ 1
right click and press rename file
22nd May 2019, 10:21 PM
slick
slick - avatar
0
slick He meant how to do it within a C++ program xD
23rd May 2019, 4:33 AM
Shahil Ahmed
Shahil Ahmed - avatar
0
Thank you I will try it
23rd May 2019, 6:19 AM
Miroslav VyĹĄnĂ˝