In my application i need to search for a file in a special folder, make a copy of it, save it to a desired location and then rename it, (or first rename it and then save it) without opening the file. How can i accomplish that?
Thanks
Printable View
In my application i need to search for a file in a special folder, make a copy of it, save it to a desired location and then rename it, (or first rename it and then save it) without opening the file. How can i accomplish that?
Thanks
This should work I guess...
You have to create the new folder (Test in this example) if it doesn't exist or else you will get an error.Code:Dim f As New System.IO.FileInfo("D:\winter.jpg")
f.CopyTo("D:\Test\winter2.jpg")