Is it possible to open the properties dialog of a file or folder from powershell?
And if so, how would I do it?
Answer
$o = new-object -com Shell.Application
$folder = $o.NameSpace("C:\path\to\file")
$file = $folder.ParseName("filename.txt")
# Folder:
$folder.Self.InvokeVerb("Properties")
# File:
$file.InvokeVerb("Properties")
No comments:
Post a Comment