Thursday, February 2, 2012

Changing the case of files

To change the case of all files within a folder hierarchy the following PowerScript can be used

dir "ramblingross" -r | % 
{ 
	if (!($_.PsIsContainer) -And $_.Name -cne $_.Name.ToLower()) 
	{ 
		ren $_.FullName $_.Name.ToLower() 
	} 
}


Bookmark Site

Bookmark and Share

Tags

  General     C#     Contracting     Perl     FlatPress     Technology     PHP     Availability     For Sale  

Search

Admin area