How to use -like for string in uppercase and lowercase
hello
i using following if else statement functionality same type of text i.e. cached. there way use 1 common statement?
if($oldfilename -like "*cached*") { $oldfilename=$oldfilename.replace('\cached','') } if ($oldfilename -like "*cached*") { $oldfilename=$oldfilename.replace('\cached','') }
Windows Server > Windows PowerShell
Comments
Post a Comment