I have 400 tif files with names similar to:
that I need to have an underscore and 6 random numbers removed to look like:
I have searched and the only solutions I have found involve downloading software which my company does not permit.
Is there a way to use a batch file to remove those seven characters from these files?
Since you are using the powershell tag, here a powershell solution:
Use the Get-ChildItem
cmdlet to retrieve your files filtered by .tif
and rename them using the Rename-Item
cmdlet with a simple regex replace:
Get-ChildItem -Path c:\tmp -Filter '*.tif' |
Rename-Item -NewName { $_.Name -replace '_\d+' }