I am trying to change the location of a file. Exh time i do this I would like the script to create a new file with a new file name.
I have managed to move the file using the name method, but I would like the moved file to have a new name each time. (so the file does not overwrite the last one)
My code now is : Name "C:\xml\data.xml" As "C:\xml\Archive\data.xml"
This does of course work fine. But I would like the file in the archive to be new each time. Like 1.xml, 2.xml, 3.xml, etc.
Can anyone help?
I have managed to move the file using the name method, but I would like the moved file to have a new name each time. (so the file does not overwrite the last one)
My code now is : Name "C:\xml\data.xml" As "C:\xml\Archive\data.xml"
This does of course work fine. But I would like the file in the archive to be new each time. Like 1.xml, 2.xml, 3.xml, etc.
Can anyone help?