mirror of
https://github.com/kneutron/ansitest.git
synced 2025-01-16 04:42:55 +08:00
Add files via upload
This commit is contained in:
parent
19d34003f7
commit
4861b0b6ac
23
powershell/cdarg.ps1
Normal file
23
powershell/cdarg.ps1
Normal 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
5
powershell/hashtable.ps1
Normal file
@ -0,0 +1,5 @@
|
||||
# Powershell
|
||||
# REF: https://adamtheautomator.com/powershell-hashtable/
|
||||
|
||||
$name=@{}
|
||||
|
Loading…
x
Reference in New Issue
Block a user