PDA

View Full Version : Getting SYSDATE and SYSTIME into environment variables under WinXP?


jim
December 26th 06, 03:17 PM
Until Win XP, I had been using an old (Microsoft originated) program which
can be used as a "batch file enhancer" called "What.exe", executed in
autobat.exe to Log session initiation date and times.

"It seems like this program has lost its ability to set the WHAT environment
variable under Windows NT. The workaround to this problem is to run it under
the command interpreter COMMAND.COM which can be found in the
\WINNT\SYSTEM32 directory. So, before running the above batch file, first
run COMMAND from the same command prompt of Windows NT. Or, run the batch
file using a command like:
C:\>C:\WINNT\SYSTEM32\COMMAND /E:2048 /C test.bat"

It has lost the variable setting capability for Win XP pro too. I tried the
above, substituting "Windows" for "Winnt" to no avail.

So, does anyone know a *simple* way (Not SQL or the like) to get SYSDATE and
SYSTIME into environment variables under WinXP?

(WHAT.EXE is about 4k and worked like a charm up to Win98.)

jim

Google