Should I Learn Batch Script or PowerShell Script First?

0
13
Asked By CuriousCoder09 On

I'm looking to pick up a new scripting language and I'm torn between Batch Script and PowerShell Script. I get that Batch is quite dated and was used back in the MS-DOS days, but I'm curious if learning it would provide any valuable experience. Should I focus on learning Batch first and then move on to PowerShell, or is that not worth my time and I should dive straight into PowerShell?

5 Answers

Answered By ScriptNinja81 On

Honestly, I'd say skip both and go for Bash instead. There's definitely more demand for Bash scripting, and with Windows Subsystem for Linux (WSL), you don't even need a separate Linux setup to practice. If you're managing Windows systems, PowerShell is great, but Bash is much more widely used in general.

Answered By TechGuru93 On

Batch and PowerShell are quite different. Batch is simpler and you can learn it pretty quickly, maybe even in a couple of hours. PowerShell, on the other hand, is really powerful and versatile, especially for Windows system administration. If you're serious about scripting, I'd recommend jumping straight into PowerShell. Plus, aside from learning for fun, Batch doesn't have much practical use anymore.

Answered By PracticalDev On

Batch is fine for very basic tasks, but PowerShell has become the go-to for automating and managing Windows. If you're keen on learning something that'll really help you in the long run, PowerShell is the way to go.

Answered By ConfusedUser On

Just a heads up, are you mixing up Batch with Bash? They are two different things. Batch is the older MS-DOS scripting language, while Bash is commonly used in Unix/Linux environments.

Answered By FutureDev On

If you want something practical, Python is a good choice since it has a wide range of applications. But if it has to be one of those two, definitely go for PowerShell.

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.