3
Contributors
6
Replies
7
Views
8 Years
Discussion Span
Last Post by wildog
0

type "time" at the command line and check it out.

Then type "man time" at the command line and read that carefully (assuming, of course, that you are using a Unix system, as that is what this forum concerns).

0

Then check in VB and or Batch forums as this forum is for Unix Scripting, as Windows Scripting is referred to as either VB or Batch, not Shell, Scripting.

0

you can use %time%
when tring to get the %time% var, it changed to the corrent time.
so you can do it on the start:
set BeginTime=%time%
and on the end:
set EndTime=%time%

You can use the NOW command that you can get on the microsoft windows server 2003 resource kit:
http://www.microsoft.com/Downloads/details.aspx?FamilyID=9d467a69-57ff-4ae7-96ee-b18c4790cffd&displaylang=en

You can also play with the strings like that

set PLAYTIME=%DATE:~10,4%-%DATE:~4,2%-%DATE:~7,2%-%TIME:~0,2%-%TIME:~3,2%-%TIME:~6,2%

echo %PLAYTIME%

(i used %date% and %time% and played with the strings....)

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.