i have a file in my bin folder that i want copied to the path C:\Windows\System
how?
Printable View
i have a file in my bin folder that i want copied to the path C:\Windows\System
how?
Did you do a search before you posted? If you didn't, you should. I believe this has already been answered a few times before.
Although I suggest using System.IO because that has some really good file stuff you can do.
Use:
System.IO.File.Copy(strOriginalFile, strNewPath, true)
and put the file you want copying in strOriginalFile
and strNewPath where you want want to copy the file to.
The boolean on the end specifies whether or not you want to overwrite the file if it already exists. Set it to false if you don't want to