Opening a directory from the shell

Поделиться
HTML-код
  • Опубликовано: 30 сен 2024
  • This is going to be done in PowerShell. Like everything in a Windows environment it can be done in more than one way. In the video I show you the manual way to do it in the GUI.
    From there I proceed to show you how to acheive the same thing using a Start-Process script.
    Start-Process explorer.exe -ArgumentList "C:\Users\Owner\AppData\Local\Temp"
    This method will show the contents of the directory by opening a file explorer window. Another way is by using a Get-ChildItem script that will show you everything inside the shell.
    Get-ChildItem -Path 'C:\Users\Owner\AppData\Local\Temp' -Recurse
    No fancy icons, no point and click, just the filenames. Using "-Recurse" allows you to see the contents of the sub-directories. If you're only interested in the first level then you can leave it out.

Комментарии •