G
Guest
Hi,
I have to be able to rename a file, where I only know the extension of the
file. Basiclly a remote system creates a file, with a random name, but a
fixed extension.
I know how move/copy a file using the code, below, but how do I do it when I
with just a known extension. I tried *.res as the fileinfo param, but it
didn't like it
Dim fi As New FileInfo("file.res")
fi.MoveTo("newfile.res")
I have to be able to rename a file, where I only know the extension of the
file. Basiclly a remote system creates a file, with a random name, but a
fixed extension.
I know how move/copy a file using the code, below, but how do I do it when I
with just a known extension. I tried *.res as the fileinfo param, but it
didn't like it
Dim fi As New FileInfo("file.res")
fi.MoveTo("newfile.res")