工具或 vbscript 将硬编码文本添加到多个文件的顶部?
有谁知道一个工具可以添加预定义文本,例如以下 4 行:
"My disclaimer:
For legal reasons -
1. Don't blah...
2. You must..."
到目录中的所有 .txt 文件:“C:/test/”
我见过附加函数,但它们只添加到底部,不确定添加到文件顶部的方法。
我的操作系统是Win XP。
Does anyone know a tool that can add predefined text such as the following 4 lines:
"My disclaimer:
For legal reasons -
1. Don't blah...
2. You must..."
to all .txt files in a directory: "C:/test/"
I have seen append functions but they only add to the bottom, not sure of a method for adding to the top of the file.
My OS is Win XP.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
SrcHead 是一个免费实用程序,可以调整多个源文件的标头。它是为 Windows 编写的,需要 .NET Framework 2.0 才能工作。
SrcHead is a free utility that can adjust the header of multiple sourcefiles. It is written for Windows and needs the .NET Framework 2.0 to work.
还没有测试过这个,但它应该会让你走上正确的轨道。
Haven't tested this, but it should put you on the right track.