Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

powershell check file extension

$extension = [IO.Path]::GetExtension($file)
if ($extension -eq ".xml" ) { }
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #powershell #check #file #extension
ADD COMMENT
Topic
Name
2+5 =