Jukka Jääheimo
asked on
A batch file to select file with greatest id
I will have several files during the day. Cannot select the latest with timestamp, i need to have to file with the greatest id.
The file name is in a format: [standardname]_[date]_[id] .csv. Eg invoices_2017_09_19_186.cs v
The file name is in a format: [standardname]_[date]_[id]
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Great! That worked perfectly! Thank you!
If not, this would be MUCH easier with a VB Script, but still doable with batch (and probably insanely simple with PowerShell (but that I don't know).