#include<bits/stdc++.h>
#include<Windows.h>
#include<winbase.h>
using namespace std;
int main()
{
BOOL mdir;
mdir = MoveFileA(
"D:\\Programming\\C++\\ok.txt",
"D:\\Programming\\C++\\Ok.txt");
if(mdir == FALSE){
cout<<"Error"<<GetLastError()<<endl;
}
else
cout<<"Successfully Moved"<<endl;
system("PAUSE");
return 0;
}
Comments
Post a Comment