Please advise me on how to utilize the scripting capabilities within POWERSHELL to sort the following list of files by the date stored between the underscores? Once sorted how can I go about renaming the files "MMDDYYYY_MP###.##_Inspection Report,xls"
MP1018.78_04292014_Inspection Report.xls
MP1018.78_04302014_Inspection Report.xls
MP1043.21_04162013_Inspection Report.xls
MP1043.21_04172013_Inspection Report.xls
MP1043.21_04182013_Inspection Report.xls
MP1043.21_04222013_Inspection Report.xls
MP1043.21_04232013_Inspection Report.xls
MP1043.21_04242013_Inspection Report.xls
MP1043.21_04252013_Inspection Report.xls
MP1043.21_04262013_Inspection Report.xls
MP1043.21_04272013_Inspection Report.xls
MP1043.21_04282013_Inspection Report.xls
MP1043.21_04292013_Inspection Report.xls
MP1043.21_05012013_Inspection Report.xls
MP1043.21_06012013_Inspection Report.xls
MP793 65_03122014_Inspection Report.xlsx
MP793 65_03132014_Inspection Report.xlsx
MP793.65_03102014_Inspection Report.xlsx
MP793.65_03112014_Inspection Report.xlsx
MP800.32_02242014_Inspection Report.xlsx
MP800.32_02252014_Inspection Report.xlsx
MP800.32_02282014_Inspection Report.xlsx
MP806.42_02172014_Inspection Report.xls
MP806.42_02182014_Inspection Report.xls
MP806.42_02192014_Inspection Report.xls
MP806.42_02202014_Inspection Report.xlsx
MP806.67_03062014_Inspection Report.xls
MP806.70_03052014_Inspection Report.xls
MP806.70_03052014_Inspection Report.xlsx
MP853.78_04012013_Inspection Report.xls
MP857.76_08112014_Inspection Report.xlsx
MP857.76_08122014_Inspection Report.xlsx
MP857.76_08132014_Inspection Report.xlsx
MP857.76_08142014_Inspection Report.xlsx
MP857.76_08152014_Inspection Report.xlsx
MP857.76_08162014_Inspection Report.xlsx
MP857.76_08172014_Inspection Report.xlsx
MP864.61_04022013_Inspection Report.xls
MP864.61_04032013_Inspection Report.xls
MP883.91_04022013_Inspection Report.xls
MP895.94_03042014_Inspection Report.xlsx
MP903.41_02262014_Inspection Report.xlsx
MP919.51_04102013_Inspection Report.xls
- Edited by Fellowfromearth 17 hours 15 minutes ago