I'm trying to write a .net script which will take the 2nd element from an array which has a dos command runs as input, then feed that element into another dos command and parse out the elements I'm looking for.
Can any of you coders tell me what I'm doing wrong.
It appears that Set is not supported... How can I get around this?
Thanks in advance
Robert
Can any of you coders tell me what I'm doing wrong.
It appears that Set is not supported... How can I get around this?
Thanks in advance
Robert
Code:
Sub Main() Dim MyNSRMM Dim MyTape Dim MyNSRINFO Dim MyCap Dim MyPer set WshShell = CreateObject("WScript.Shell") MyNSRMM = Split(WshShell.Run("C:\Progra~1\nsr\bin\nsrmm")) MyTape = MyNSRMM(2) MyNSRINFO = Split(WshShell.Run("C:\Progra~1\nsr\bin\mminfo.exe -a -r written,%used" & MyTape)) MyCap = MyNSRINFO(3) + " " + MyNSRINFO(4) MyPer = MyNSRINFO(5) hs.WriteLog("Debug", MyCap, MyPer) set WshShell = Nothing End Sub
Comment