No need for a script file. You can run from the command prompt:
mshta vbscript:(MsgBox(DateAdd("n",1,Now)))
How do we save the output of
b]mshta vbscript:(MsgBox(DateAdd("n",1,Now)))[/b]
to a batch variable? Matt, the original poster, ask that the output be assigned to
batch variable.
C:\batch>time /t
12:15 PM
C:\batch>mshta vbscript:(MsgBox(DateAdd("n",1,Now)))
C:\batch>
[recovering disk space - old attachment deleted by admin]