mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-08-25 03:05:40 +02:00
Updated cd-fonts.ps1 and cd-windows.ps1
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
This PowerShell script changes the working directory to the Windows directory.
|
||||
.EXAMPLE
|
||||
PS> ./cd-windows
|
||||
📂C:\Windows entered (has 7 files and 42 subfolders)
|
||||
📂C:\Windows entered (has 7 files and 42 folders)
|
||||
.LINK
|
||||
https://github.com/fleschutz/PowerShell
|
||||
.NOTES
|
||||
@@ -20,7 +20,7 @@ try {
|
||||
Set-Location "$path"
|
||||
$files = Get-ChildItem $path -attributes !Directory
|
||||
$folders = Get-ChildItem $path -attributes Directory
|
||||
"📂$path entered (has $($files.Count) files and $($folders.Count) subfolders)"
|
||||
"📂$path entered (has $($files.Count) files and $($folders.Count) folders)"
|
||||
exit 0 # success
|
||||
} catch {
|
||||
"⚠️ Error: $($Error[0])"
|
||||
|
Reference in New Issue
Block a user