Quantcast
Channel: PowerShell.com – PowerShell Scripts, Tips, Forums, and Resources
Viewing all articles
Browse latest Browse all 8583

Rename file to remove string between "_"

$
0
0

Hi,

I have 100 files which contains "_".

I need remove filename bits between "_". See below.

Input:
    xxx_yyy_zzz.html
    aa_bb_cc.html

Output:
   xxx_zzz.html
   aa_cc.html

Any easy Powershell scripting doing file renaming for 100+ files.

 


Viewing all articles
Browse latest Browse all 8583

Trending Articles