4 ms·
> The C and C++ preprocessors are like the Windows command prompt batch language: They implement a very simple language that people still use for some reason.
by Wowfunhappy 7y ago
> The C and C++ preprocessors are like the Windows command prompt batch language: They implement a very simple language that people still use for some reason.
I can tell you exactly why I use batch scripts—they're the only type of script that will run on double click in a stock Windows install.
Powershell scripts won't by default for security reasons, but for some reason for batch it's okay. So I use batch.
- pjmlp 7y agoBecause tons of legacy applications rely on it and it would be a major outcry to change them to the way Powershell works. Locking down batch files, vbs and js scripts can be easily done at AD level and let people be pissed off with IT instead.
- Wowfunhappy 7y agoOkay, but then Microsoft needn't act surprised when people use batch. And security-wise, I have to question whether that's really a useful outcome versus letting Powershell scripts run by default.
- pjmlp 7y agoYeah, but it is hardly different than the "curl | sh" fashion I guess. Here how to disable it, https://www.computerhope.com/issues/ch001005.htm https://www.computerhope.com/issues/ch001005.htm