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