PowerShell/Scripts/close-file-explorer.ps1
2020-12-28 09:41:46 +00:00

12 lines
387 B
PowerShell
Executable File

#!/snap/bin/powershell
# Syntax: ./close-file-explorer.ps1
# Description: closes Microsoft File Explorer gracefully
# Author: Markus Fleschutz
# Source: github.com/fleschutz/PowerShell
# License: CC0
$PathToRepo=(get-item $MyInvocation.MyCommand.Path).directory.parent
Start-Process -FilePath "$PathToRepo/Scripts/close-program.ps1" -ArgumentList "explorer" -NoNewWindow -Wait