Thursday 15 August 2013

I would like to append the name of a bunch of files automatically. -


I would like to add the name of a group of files to Windows 7. My files are the format of this name: nnnnnnnnnnnnnnnayep I would like them to be 111_NNNNNNN_NNNN.N. Can I do this with a bat file or script? Yes Powershell (For forced interpretation, $ () may not be required):

/ P>

  Dir * .tif | For every object- $ {= i = 111} process-process {rename-item $ _-new name "$ ($ i) _ $ ($ _) .tif"; $ I ++}  

with batch:

  call @echo off set i = 111 for %% f (* .tif): Renamefiles "%% F" got it done: renamefiles ren% i_% 1% .tif set / a i + = 1: done  

No comments:

Post a Comment