格式化文件以使用VBScript获得所需的输出 [英] Format a file to get desired output using VBScript
本文介绍了格式化文件以使用VBScript获得所需的输出的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
您好,
以下是我所做的部分代码..
Hello ,
I tried a code which reads the file InputFile.txt (attached) grep particular values and write it to a file in a desired output format is in file OutputFile.txt
Below is the code partially I have done..
展开 | 选择 | 换行 | 行号
推荐答案
你没有说出代码有什么问题。不工作太过一般了。
此外,由于VBS比V6更接近VBA,我将其移至Access论坛,在那里您可以获得更多帮助。
You haven''t said what is wrong with the code. Not working is too general a statement.
Also, since VBS is closer to VBA than VB6, I''m moving this to the Access forum where you may get more help.
QUEUE(TEST.QA.Q1)TYPE(QLOCAL)
CURDEPTH(0)MAXDEPTH(100000)
开我的inputfile.txt,如何形成正则表达式模式以匹配上面的模式''。请注意单词TEST.QA.Q1可以改变,并且由。分隔的单词。点数可能会有所不同。
我在代码中形成的模式与QUEUE(TEST.QA.Q1)不匹配。
QUEUE(TEST.QA.Q1) TYPE(QLOCAL)
CURDEPTH(0) MAXDEPTH(100000)
On my inputfile.txt , How do I form the regular expression pattern to match above pattern''s. pls note word "TEST.QA.Q1" may change and the words delimited by "." dots may vary in numbers.
The pattern That i formed in my code didn''t match QUEUE(TEST.QA.Q1).
您的正则表达式模式格式错误。它应该是 \w + \([\\\\。] + \)
Your regex pattern is malformed. It should be \w+\([\w\.]+\)
这篇关于格式化文件以使用VBScript获得所需的输出的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文