Computer Hope

Microsoft => Microsoft DOS => Topic started by: lalat06bag on January 10, 2018, 01:40:59 PM

Title: Remove the part of the multiple files
Post by: lalat06bag on January 10, 2018, 01:40:59 PM
What would the the code to remove the date part of multiple files in a folder and rename in a DOS batch file.

Input file WTIN_PEG_SE_abc-en-us_2017-12-20T024722674Z.pdf
Output should be WTIN_PEG_SE_abc-en-us.pdf

This should work for multiple files in the folder.


Title: Re: Remove the part of the multiple files
Post by: Squashman on January 12, 2018, 02:21:32 PM
Answered on DosTips (https://www.dostips.com/forum/viewtopic.php?f=3&t=8326).