Created
December 14, 2022 10:56
-
-
Save avipars/52ba8b9a94075b28cc667559808b3b05 to your computer and use it in GitHub Desktop.
powershell script to open all files in a set folder
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$path = "C:\Users\whatever\folder" | |
Invoke-Item $path #open that folder | |
Set-Location -Path $path | |
$count = 0 | |
foreach($file in Get-ChildItem $path) | |
{ | |
Invoke-Item -path $file | |
$count++ | |
} | |
Write-Host "Opened $count files" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.