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() 
	} 
}


Add comment

Fill out the form below to add your own comments


Bookmark Site

Bookmark and Share

Tags

  For Sale     Availability     FlatPress     Technology     General     Perl     PHP     Contracting     C#  

Search

Admin area