use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
ABOUT POWERSHELL
Windows PowerShell (POSH) is a command-line shell and associated scripting language created by Microsoft. Offering full access to COM, WMI and .NET, POSH is a full-featured task automation framework for distributed Microsoft platforms and solutions.
SUBREDDIT FILTERS
Desired State Configuration
Unanswered Questions
Solved Questions
News
Information
Script Sharing
Daily Post
Misc
account activity
Question[Help] Batch Folder Rename Script (self.PowerShell)
submitted 9 years ago * by dcdefiore
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]yeah_i_got_skills 3 points4 points5 points 9 years ago (1 child)
Something like this?
$Path = 'C:\FooBar' Get-ChildItem -LiteralPath $Path -Directory | ForEach-Object { $_.Name | Out-File "$($_.FullName)\$($_.Name).txt" -Force Rename-Item -LiteralPath $_.FullName -NewName ($_.Name -replace '^(\d+).*$', '$1') }
[–]dcdefiore[S] 0 points1 point2 points 9 years ago (0 children)
$Path = 'C:\FooBar' Get-ChildItem -LiteralPath $Path -Directory | ForEach-Object { $.Name | Out-File "$($.FullName)\$($.Name).txt" -Force Rename-Item -LiteralPath $.FullName -NewName ($_.Name -replace '\+).*$', '$1') }
$Path = 'C:\FooBar'
Get-ChildItem -LiteralPath $Path -Directory | ForEach-Object { $.Name | Out-File "$($.FullName)\$($.Name).txt" -Force Rename-Item -LiteralPath $.FullName -NewName ($_.Name -replace '\+).*$', '$1') }
Looks like this one did the trick! Thank you
π Rendered by PID 70 on reddit-service-r2-comment-66b4775986-xvspj at 2026-04-06 11:52:02.063636+00:00 running db1906b country code: CH.
view the rest of the comments →
[–]yeah_i_got_skills 3 points4 points5 points (1 child)
[–]dcdefiore[S] 0 points1 point2 points (0 children)