I'm writing a program to copy a file to a static location, with a static name. I've got this working, but the problem is, I need to rename the original file. I need to add a z to the start of the file name of the original. How could I do this? Also, how can I get the open dialog box to not display any files starting with a z? Here's the code I have so far:
Code:
Dim strFile As String
ofdOpen.Filter = "Text File|*.txt"
If ofdOpen.ShowDialog = Windows.Forms.DialogResult.OK Then
strFile = ofdOpen.FileName
Else
End
End If
FileCopy("C:\B7\PY7334\f0611621.txt", strFile)