Link to home
Start Free TrialLog in
Avatar of UnderSeven
UnderSeven

asked on

How best to re-write vbs script code wscript

I need to try to get this to work in a vs 2012 project, I have the following segments.  I'm not sure I understand what wscript does, here are the example pieces.

objArgs = wscript.Arguments
        If (objArgs.Count = 2) Then
            DirName = CStr(objArgs(0))
            ReadingDate = CDate(objArgs(1))
        ElseIf (objArgs.Count = 1) Then
... code here

    FileSys = wscript.CreateObject("Scripting.FileSystemObject")

Open in new window

Avatar of chaau
chaau
Flag of Australia image

What is your question?
ASKER CERTIFIED SOLUTION
Avatar of Dontmilkthis
Dontmilkthis
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of UnderSeven
UnderSeven

ASKER

Yep.  This is what I was looking for. Thanks.