Added go-scripts.ps1

This commit is contained in:
Markus Fleschutz 2021-02-26 14:54:30 +01:00
parent 33f5b5b408
commit afc051be0c
3 changed files with 17 additions and 0 deletions

View File

@ -32,6 +32,7 @@ generate-qrcode.ps1, generates a QR code
go-downloads.ps1, go to the user's downloads folder
go-home.ps1, go to the user's home folder
go-music.ps1, go to the user's music folder
go-scripts.ps1, go to the PowerShell Scripts folder
hibernate.ps1, enables hibernate mode for the local computer (requires admin rights)
inspect-exe.ps1, prints basic information of the given executable file
list-anagrams.ps1, lists all anagrams of the given word

1 Script Description
32 go-downloads.ps1 go to the user's downloads folder
33 go-home.ps1 go to the user's home folder
34 go-music.ps1 go to the user's music folder
35 go-scripts.ps1 go to the PowerShell Scripts folder
36 hibernate.ps1 enables hibernate mode for the local computer (requires admin rights)
37 inspect-exe.ps1 prints basic information of the given executable file
38 list-anagrams.ps1 lists all anagrams of the given word

View File

@ -77,6 +77,7 @@ Scripts for Files & Folders 📁
* [go-downloads.ps1](Scripts/go-downloads.ps1) - go to the user's downloads folder
* [go-home.ps1](Scripts/go-home.ps1) - go to the user's home folder
* [go-music.ps1](Scripts/go-music.ps1) - go to the user's music folder
* [go-scripts.ps1](Scripts/go-scripts.ps1) - go to the PowerShell Scripts folder
* [inspect-exe.ps1](Scripts/inspect-exe.ps1) - prints basic information of the given executable file
* [list-empty-dirs.ps1](Scripts/list-empty-dirs.ps1) - lists empty subfolders within the given directory tree
* [list-empty-files.ps1](Scripts/list-empty-files.ps1) - lists empty files within the given directory tree

15
Scripts/go-scripts.ps1 Executable file
View File

@ -0,0 +1,15 @@
#!/bin/powershell
<#
.SYNTAX ./go-scripts.ps1
.DESCRIPTION go to the PowerShell Scripts folder
.LINK https://github.com/fleschutz/PowerShell
.NOTES Author: Markus Fleschutz / License: CC0
#>
try {
set-location $PSScriptRoot
exit 0
} catch {
write-error "ERROR: line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
exit 1
}