If it is an NT script you can do something like

   for /f "delims=" %%a in ('DATE /T') do set Date1=%%a
  for /f %%a in ('TIME /T') do set Time1=%%a
  for /f "tokens=2-4 delims=/ " %%a in ('DATE /T') do set Date1=%%c-%%b-%%a
  for /f "tokens=1-2 delims=: " %%a in ('TIME /T') do set Time1=%%a-%%b

Date1 and Time1 would give you the current date and time in the format you
specify...

-rsb

> -----Original Message-----
> From: Michel Engels [SMTP:[EMAIL PROTECTED]]
> Sent: Thursday, December 28, 2000 9:08 AM
> To:   [EMAIL PROTECTED]
> Subject:      Passing date to scripts
>
> Hi TSMers,
>
>
> Does anybody know a way to pass the current date to a script?
>
>
>
> Michel
>
>
>
>
>
> Have a Happy ending of 2000 and a great beginning of 2001

Reply via email to