学习高级批处理文件使用的最佳免费资源? [英] Best free resource for learning advanced batch-file usage?

查看:30
本文介绍了学习高级批处理文件使用的最佳免费资源?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

学习高级批处理文件使用的最佳免费资源是什么?

What are the best free resources for learning advanced batch-file usage?

推荐答案

它不是免费的,但它可能是最好的."Windows NT Shell Scripting" by Tim Hill.

It's not free, but it's probably the best. "Windows NT Shell Scripting" by Tim Hill.

也就是说,每当我尝试在 cmd 批处理文件中执行高级"操作时,我总是会后悔.

That said, whenever I try to do something 'advanced' in cmd batch files, I always end up regretting it.

总是.

对批处理文件缺点的一些解释:

edit: some explanation of the shortcomings of batch files:

  • 数学能力太差了
  • 引用支持是事后的想法 - 如果您需要将带引号的字符串作为参数传递给需要自己引用的命令,请在庇护处保留一个位置(实际上,我不确定这是否可能)
  • 字符串操作是由一半实现的功能拼凑而成的

然后,您在每一个转折点都会遇到看似永无止境的古怪、极端情况和不一致.

Then there are the seemingly never-ending bits of oddities, corner cases, and inconsistencies that you run into at every turn.

批处理文件的唯一优点是它们在所有 Windows 机器上都受支持.如果您只想作为一个组自动执行一些命令,那就太好了.也许添加一个简单的循环、几个子程序和一些环境变量来参数化.除此之外,我强烈建议您使用其他东西.

The only thing going for batch files is that they're supported on every Windows box out there. If you just want to automate executing a few commands as a group, great. Maybe add a simple loop, a couple of subroutines, and some environment variables to parameterize things. Beyond that I strongly recommend you use something else.

这篇关于学习高级批处理文件使用的最佳免费资源?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆