Hi,
Just wondering if anyone can help me out in turning this program into a working program.
Basically, everything works, apart from inserting the results in the last SYSTEM() line.
Any help would be greatly appreciated.
Code:#include <cstdlib> #include <iostream> using namespace std; int main() { string a; string b; string c; cout << "Enter source path (where files will be moved from)\n"; cout << ": "; cin >> a; cout << "Enter destination path (where files will be moved to)\n"; cout << ": "; cin >> b; cout << "Enter minimum access age in days\n"; cout << "(This will move all files not accessed in x number of days)\n"; cout << ": "; cin >> c; cout << c << a << b; system("robocopy //MOVE //MINLAD:" << c << a << b""); system("PAUSE"); return EXIT_SUCCESS; }