是否可以写入并生成“(不执行)”。来自VBA的Perl脚本? [英] Is it possible to write into and generate "(not execute)" a Perl script from VBA ?
本文介绍了是否可以写入并生成“(不执行)”。来自VBA的Perl脚本?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想编写一个调用perl脚本的VB代码,并将一些参数的值写入perl脚本。我不想执行pl文件。最终输出应该是perl脚本(.pl文件),用户输入这些参数的值。
我该怎么做?
这很紧急,请帮忙。
谢谢
我的尝试:
我对perl及其功能不太熟悉。
I want to write a VB code that calls a perl script and write the value of a few arguments into the perl script. I don't want to execute the pl file. The final output should be the perl script(.pl file) with the user entered value of those arguments.
How do I do that?
It is urgent, do help.
Thanks
What I have tried:
I am not much familiar with perl and its functioning.
推荐答案
perl脚本只是另一个带有pl扩展名的文本文件。您可以使用VB或VBA写入文本文件。
您标记了问题VBA,但在实际问题中为VB。你真的在用哪个?因为两者之间的文件写入不同。
VBA:
VBA - 文本文件 [ ^ ]
VB:
如何:在Visual Basic中使用StreamWriter将文本写入文件 [ ^ ]
A perl script is just another text file with a pl extension. You can use VB or VBA to write to a text file.
You tagged the question VBA, but then as VB in the actual question. Which are you really using? Because writing to a file is different between the two.
VBA:
VBA - Text Files[^]
VB:
How to: Write Text to Files with a StreamWriter in Visual Basic[^]
这篇关于是否可以写入并生成“(不执行)”。来自VBA的Perl脚本?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文