RSS Links

 

Here are all of the RSS links for sections of this site

VB.NET/ASP.NET
 Java
 Unix/Linux
 Windows
 SQL Server

Home arrow VB.NET/ASP.NET arrow How to copy a file in VB.NET/ASP.NET
How to copy a file in VB.NET/ASP.NET PDF Print E-mail
Monday, 19 January 2009
To copy a file  use

System.IO.File.Copy(FileToCopy, NewCopy)

Note


The NewCopy must include the filename and the file will not be overwritten if it already exists any errors are returned as exceptions

to copy and overwrite use the

System.IO.File.Copy(FileToCopy, NewCopy, Overwrite)

form of the method

There is more information from the Microsoft site at http://msdn.microsoft.com/en-us/library/system.io.file.copy.aspx
 
 
< Prev   Next >
 
Designed by Graham Robinson Software