Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Would love to see the same for batch on Windows


If you’re scripting on Windows, it’s better to use PowerShell instead of batch. Compared to Bash, PowerShell is also better suited for large scripts because it works with objects rather than plain text. This makes handling structured data like JSON, XML, or command outputs much easier, avoiding the need for error-prone text parsing.


PowerShell is definitely better for new projects, but there's lots of legacy batch files out there.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: