title: Rename multiple files by using BATCH, VBSCRIPT or BASH SHELL
body: <p>I have a numbers of files in folder A, what I need to do is to rename the filename to different pattern example: <code>TTFILE-201109265757.dat</code> to <code>YTL.MSZSH1.ch1.201109265757_0001.0001.dat</code></p>
  
  <p>Where <strong>YTL, MSZSH1, ch1</strong> is prefix then follow by the filename then <code>_</code> then sequence number</p>
  
  <p>The filename pattern should be like this:  <code>YTL.MSZSH1.ch1.filename_SequenceNumber.SequenceNumber</code> where <code>SequenceNumber</code> is 4 digit, reset to 0 after 9999.</p>