invoke-item
Open files in their respective default programs. tldr-pages
On Windows
Windows
Open files in their respective default programs. Note: This command can only be used through PowerShell.
Open a file in its default program
Invoke-Item -Path path\to\fileIdentifyOpen all files inside a directory
Invoke-Item -Path path\to\directory\*IdentifyOpen all PNGs inside a directory
Invoke-Item -Path path\to\directory\*.pngIdentifyOpen all files inside a directory containing a specific keyword
Invoke-Item -Path path\to\directory\* -Include *keyword*IdentifyOpen all files inside a directory except those containing a specific keyword
Invoke-Item -Path path\to\directory\* -Exclude *keyword*IdentifySimulate a run to determine which files will be opened inside a directory through Invoke-Item
Invoke-Item -Path path\to\directory\* -WhatIfIdentify