Hi
I need to create a VBScript to automatically move files from one folder location to another. Unfortunatley the source folder contains mulitple versions of the same file and I only need to move the latest. The versions are detemined by an underscore at the end of the file name. e.g
abc_1.doc
abc_2.doc
def_1.doc
def_2.doc
def_3.doc
There are mulitple files in the folder with different file names which are subject to change.
What I need help with is itterating around each file name and finding the latest version e.g. the greatest number after the underscore.
Ultimately in the example above we would want abc_2.doc and def_3.doc in the target folder.
I have been banging my head against it all day and haven't really got close.
Any help would be really appreciated.
Jon
I need to create a VBScript to automatically move files from one folder location to another. Unfortunatley the source folder contains mulitple versions of the same file and I only need to move the latest. The versions are detemined by an underscore at the end of the file name. e.g
abc_1.doc
abc_2.doc
def_1.doc
def_2.doc
def_3.doc
There are mulitple files in the folder with different file names which are subject to change.
What I need help with is itterating around each file name and finding the latest version e.g. the greatest number after the underscore.
Ultimately in the example above we would want abc_2.doc and def_3.doc in the target folder.
I have been banging my head against it all day and haven't really got close.
Any help would be really appreciated.
Jon