Solution to “The term ‘-Version’ is not recognized as the name of a cmdlet…”

When trying to run PowerShell.exe with command line argument -Version, you may get the following error: -Version : The term ‘-Version’ is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and …

MS-DOS command redirection operators

This article is from our Febooti archive, it was relevant then, and I think that it is still relevant today (a few details changed). Previous article: IF statement in DOS batch file. The two most commonly used redirection operators used in console are the output redirection operator (>) and the input redirection operator ( is …

IF statement in DOS batch file

This article is from our Febooti archive, it was relevant then, and I think that it is still relevant today (a few details changed). Previous article: Loops in the Batch files with examples. The IF command in the batch scripting is very similar to the IF statement in other programming languages. The IF command allows …