I know nothing about java script but I need help deleting all previous file versions.
The Files are named as follows:
544401_A_01.prt
544401_A_02.prt
544401_B_01.prt
544401_C_01.prt
544401_C_02.prt
The string in red is always variable and never a constant string length
The string in blue has been normalized to always be 2 characters-This is the file version number
The String in green is always 1 character A-Z-This is the file revision
The underscores are always there and in the same place
I need to keep the highest Revision and the highest Version and have it renamed without the "_C_02".
is it also possible to delete/move the rest of the files so that i only have the most current files under one folder?
i know it probably makes more sense to do this by date created but since these were copied from the old database the time stamps were re-written and i don't know if they follow the correct chronological order.