Hi.
I'm neither accomplished at vb.net or vbscript, but have been fooling with both of them as of late. I have a vb.net GUI that calls 2 vbscripts, and I would like to cut it down to just one (my skill level is not such that I could even attempt to convert the big one to vb.net).
The smaller of the 2 vbscripts just calls the larger one by running a command line statement. I wonder if someone can help me get started in getting this to vb.net. Here is the statement...
I have no problem passing the variables to the vbscript. My problems come in dealing with the oshell, WScript, CScript, and the sending results to DNLD.csv.
Anyone willing to take a stab at it?
Thanks,
Brad
I'm neither accomplished at vb.net or vbscript, but have been fooling with both of them as of late. I have a vb.net GUI that calls 2 vbscripts, and I would like to cut it down to just one (my skill level is not such that I could even attempt to convert the big one to vb.net).
The smaller of the 2 vbscripts just calls the larger one by running a command line statement. I wonder if someone can help me get started in getting this to vb.net. Here is the statement...
Code:
Set oShell = CreateObject("WScript.Shell")
If Not WScript.FullName = CurrentPath & "cscript.exe" Then
oShell.Run "cmd.exe /c" & WScript.Path _
& "\cscript.exe //NOLOGO " & Chr(34) _
& "TweakedFetch.vbs" & Chr(34) & " " & Chr(34) _
& strEmail & Chr(34) & " " & Chr(34) _
& strNetwork & Chr(34) & " " & Chr(34) _
& BDate & Chr(34) & " " & Chr(34) _
& EDate & Chr(34) & " " & Chr(34) _
& strP & Chr(34) & " >DNLD.csv"
WScript.Quit 0
End If
Anyone willing to take a stab at it?
Thanks,
Brad
Comment