Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do I copy a file?

Status
Not open for further replies.

martindavey

Programmer
Jan 2, 2000
122
GB
How do I copy a file?
I could use system( "copy file.dat file.old" );
But that is bad.

Please help! :0)
 
CopyFile("sourcepath\\oledile","atrgetpath\\",0);//the
//last argument is to delete if the new one exist or not. John Fill
1c.bmp


ivfmd@mail.md
 
also you can copy to new name
CopyFile("sourcepath\\oldname.oldextension",
"targetpath\\newname.newextension",0);// John Fill
1c.bmp


ivfmd@mail.md
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top