How would i go about storing the time it took to excecute my script into a variable?
any help would be appreciated :)
See the "time" command.
can you tell me what that is?
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).
im using win32 :P
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.
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:
and on the end:
You can use the NOW command that you can get on the microsoft windows server 2003 resource kit:
You can also play with the strings like that
(i used %date% and %time% and played with the strings....)