Add files via upload

This commit is contained in:
kneutron 2023-01-31 19:01:44 -06:00 committed by GitHub
parent 19d34003f7
commit 4861b0b6ac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 28 additions and 0 deletions

23
powershell/cdarg.ps1 Normal file
View File

@ -0,0 +1,23 @@
#!/usr/local/bin/pwsh
<# REF: https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_switch?view=powershell-7.3 #>
$param1=$args[0]
Write-Output $param1
# switch -Regex $(param1)
# 'bincloud|binc' {}
switch ($param1)
{
1 {cd ~/bin/powershell }
# 2 {cd "c:\users\$env:UserName" }
# 3 {cd "c:\users\$env:UserName\Desktop\Docs-local\bin-cloud" }
shr {cd /Volumes/zhgstera6/shrcompr-zhgst6 }
notshr {cd /Volumes/zhgstera6/notshrcompr-zhgst6 }
dvd {cd /Volumes/zhgstera6/dvdrips-shr/MAKEMKV }
Default { Write-Output "Fallthru, no match" }
}
Get-Location # pwd

5
powershell/hashtable.ps1 Normal file
View File

@ -0,0 +1,5 @@
# Powershell
# REF: https://adamtheautomator.com/powershell-hashtable/
$name=@{}