mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-03-25 21:46:43 +01:00
Update close-file-explorer.ps1
This commit is contained in:
parent
ef5cc8ed79
commit
c8dd256933
@ -1,8 +1,8 @@
|
||||
<#
|
||||
.SYNOPSIS
|
||||
Closes Microsoft's File Explorer
|
||||
Closes the File Explorer
|
||||
.DESCRIPTION
|
||||
This script closes Microsoft's File Explorer gracefully.
|
||||
This script closes the Microsoft File Explorer application gracefully.
|
||||
.EXAMPLE
|
||||
PS> ./close-file-explorer
|
||||
.NOTES
|
||||
@ -11,5 +11,5 @@
|
||||
https://github.com/fleschutz/PowerShell
|
||||
#>
|
||||
|
||||
& "$PSScriptRoot/close-program.ps1" "File Explorer" "explorer" "explorer"
|
||||
(New-Object -ComObject Shell.Application).Windows() | %{$_.quit()}
|
||||
exit 0 # success
|
||||
|
Loading…
Reference in New Issue
Block a user