power rename batch files

foreach($i in (dir *))
{ 
	if($i.Name.StartsWith("0"))
	{
		//write-Host $i.Name.SubString(1);
		Rename-Item $i.Name $i.Name.SubString(1);
	}
}

  

posted @ 2013-01-26 16:32  zyip  阅读(165)  评论(0编辑  收藏  举报