Copy file ?

Suse.hr

Member
Joined
Nov 27, 2007
Messages
5
Programming Experience
Beginner
How to copy a file ? Example i have a file called "C:\test.exe" and i want to copy it to "C:\Windows\System32" How to do that ?
 
Use one of the My.Computer.FileSystem.CopyFile() methods. If you need to take the filename of the first path and combine with the folder path you said there are methods for this in System.IO.Path class. (IO.Path.GetFileName, IO.Path.Combine)
 
Back
Top