Filename1: Specify the file to rename
Filename2: Specify the new name of the file
/D: Append Accounting Date to file name
/T: Append Current Time to file name
/R: Append Restaurant ID to file name
If no switch is specified, the /D switch is applied by default.
Input: MDRename C:\test\CloseDet.txt
Output: C:\test\CloseDet_YYYYMMDD.txt
Input: MDRename C:\test\CloseDet.txt export.csv
Output: C:\test\export_YYYYMMDD.csv
Input: MDRename /D C:\test\CloseDet.txt
Output: C:\test\CloseDet_YYYYMMDD.txt
Input: MDRename /T C:\test\CloseDet.txt
Output: C:\test\CloseDet_HHMMSScc.txt
Input: MDRename /D /T C:\test\closeDet.txt
Output: C:\test\CloseDet_YYYYMMDD_HHMMSScc.txt
Input: MDRename /D /T /R C:\test\closeDet.txt export.csv
Output: C:\test\export_YYYYMMDD_HHMMSScc_RRRR.csv