Is it possible for PowerShell to determine what a given file\'s type is? For example, if I pass it a path of C:\\Foo.zip, can I have it determine that the file
C:\\Foo.zip
$ext = ".exe" $null = New-PSDrive HKCR Registry HKEY_CLASSES_ROOT -ea 0 $mime = (gp HKCR:$ext)."Content Type" write-host $ext $mime