HanG321 Blog

batch file rename by PowerShell

1. remove some text on file name of all files: e.g. “TVBOXNOW ”

2. move up one level of files in each directory, e.g. c:\folder1\folder2\file3 to c:\folder1\file3

3. Remove files by extension for all subdirectories: e.g. .url / .nfo

4. see unique file extension in all subdirectories

5. file name format: xxxx.2013.zzzz, strip out .zzzz.  “-WhatIf” for dry run

6.  for all pdf or epub file, rename filename as folder name