

The integer part of this value represents the number of days that have passed since December 30, 1899.

Since the TestComplete scripting engine only supports OLE-compatible data types, the date-time values are implemented as floating-point variant values There are certain date value formats and TestComplete routines that help handle dates. OShell.Run "cscript.exe //NoLogo """ & WScript.When writing scripts we often deal with dates. '= Now restart with CScript and terminate this instance '= Add the argument to the list, enclosing it in quotesĪrgList = argList & " """ & (IX) & """" '= Get the arguments on the command line and build an argument listįor IX = 0 to - 1 If InStr( LCase( WScript.FullName ), "cscript.exe" ) = 0 Then Set oShell = CreateObject("WScript.Shell") '= then run using CScript and terminate this instance. '= Check to make sure we are running under CScript, if not restart '= Run on creation of the cCONSOLE object, checks for cScript operation

'= switches to CScript if the script has been started in WScript. '= to write to and read from the CSCript console. '= This class provides automatic switch to CScript and has methods '= End of script - the cCONSOLE class code follows here '// Pause with the message "Hit enter to continue" print "Arg(" & ix & ")=" & wscript.arguments(ix)ĭim sMsg : sMsg =. '// List all the arguments on the console log '// Arguments are passed through correctly, if present '// Now we can use the Consol object to write to and read from the console '// Instantiate the console object, this automatically switches to CSCript if required OWSH.Run vbsInterpreter & " //NoLogo " & Chr(34) & WScript.ScriptFullName & Chr(34) If InStr(LCase(WScript.FullName), vbsInterpreter) = 0 Then
