VB.NET copying and renaming a file
Posted on 2008-10-29
I need help in VB.NET to copy a file, rename it, and then put it in another folder. If that file already exists, it will overwrite without prompting.
For example file 22288Bank10292008_a3322.csv was downloaded. The user will be able to use the OpenFileDialog1 to open this file from any where they save the file to. From there, the program will take the file and copy, rename to input.csv, and put it in C:\Input\ folder. There's a third party tool that we'll use to inport this into our ERP system and the tool only recognize file input.csv.
I looked online, but only found the script: My.Computer.FileSystem.RenameFile(oldfilename, newfilename)