LuckyDuck528
Programmer
This should be pretty easy for some of you but I can't see to get it. I have some code that goes through every line in a file and looks for CreateObject("xxxxx.xxxxx"). What I need to do is pull out xxxxx.xxxxx The code I have below is returning [COLOR=red ]xxxxx.xxxxx") [/color]and I can't seem to get rid of the ") at the end.
All help is greatly appreciated. I have been driving myself nuts with this for a couple of days. Thank you immensily in advnced!
All help is greatly appreciated. I have been driving myself nuts with this for a couple of days. Thank you immensily in advnced!
Code:
Dim qt
qt = Chr(34)
If Instr(1, strLine, "CreateObject", 1) Then
k = InStr(1,strLine,"CreateObject",1)
n = Instr(k+20,strLine, qt, 1)
strm = Mid(strLine, k+14,n)
Wscript.Echo strm
more code...