Difference between revisions of "Delete a file in powershell if it exists"

From MyWiki
Jump to: navigation, search
(Created page with "<source lang="powershell"> If (Test-Path $strFileName){ Remove-Item $strFileName } </source>")
 
(No difference)

Latest revision as of 08:09, 16 June 2016

If (Test-Path $strFileName){
	Remove-Item $strFileName
}