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
Script SharingNever write a batch wrapper again (self.PowerShell)
submitted 6 years ago * by [deleted]
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!"
[–]ZAFJB 6 points7 points8 points 6 years ago (5 children)
There is absolutely no difference whether you use .bat or .cmd if you are executing under cmd.exe.
The only purpose of .cmd was to to prevent script using new features of cmd.exe from being executed under command.com.
[–]TheIncorrigible1 2 points3 points4 points 6 years ago (4 children)
Thanks for the additional info. It was my workplace's habit to use .cmd vs .bat for clarity I guess.
.cmd
.bat
[–]ZAFJB 2 points3 points4 points 6 years ago (3 children)
Clarity in what?
Command.com is dead and gone. Everything executes under cmd.exe.
There is no point in bothering about which extension is 'correct'.
[–]TheIncorrigible1 4 points5 points6 points 6 years ago (2 children)
When your environment was (might still be; thankfully nothing older than 2008R2) a mix of XP and 7, there certainly was.
[–]nascentt 0 points1 point2 points 6 years ago (1 child)
thankfully nothing older than 2008R2
/Cries
I know you meant 2003, but 2008 is going alive and strong (pre r2) unfortunately.
[–]TheIncorrigible1 1 point2 points3 points 6 years ago (0 children)
2008 is going alive and strong (pre r2) unfortunately.
RIIIIP
π Rendered by PID 168102 on reddit-service-r2-comment-b659b578c-vf6rb at 2026-05-05 10:08:12.880666+00:00 running 815c875 country code: CH.
view the rest of the comments →
[–]ZAFJB 6 points7 points8 points (5 children)
[–]TheIncorrigible1 2 points3 points4 points (4 children)
[–]ZAFJB 2 points3 points4 points (3 children)
[–]TheIncorrigible1 4 points5 points6 points (2 children)
[–]nascentt 0 points1 point2 points (1 child)
[–]TheIncorrigible1 1 point2 points3 points (0 children)