How does one copy then rename a file, given a full path name typed in by the user (which includes the filename and extension)?
Printable View
How does one copy then rename a file, given a full path name typed in by the user (which includes the filename and extension)?
Filecopy for copying files and Name for renaming files.
or just use name::::
Code:Name "c:\source.file" As "c:\newfolder\target.file"
ok?
I'm using random access to create a file which is created and edited at a default area, I then want the user to be able to name and save the file somewhere else by typing in the name of the file they want to save it as.
Code:Dim File1, File2 As String
File1 = "c:\notepad.file"
File2 = inputbox("File Name?", "File")
Name File1 As File2