i have a routine that sends generic .txt files named "orders.txt" every hour. as i receive them, i want to run a batch file to rename the file to: orders_DDMMYYYYMMSS_XXX.txt where XXX would be the total number of rows contained within the originating file
so far i have figured how to add the date/time stamp, but not the row count.
thanks in advance!
ren *.txt Completed_Orders_%date:~10,4%%date:~7,2%%date:~4,2%%time:~0,2%%time:~3,2%.txt