Re: Passing date to scripts
2000-12-28 10:27:08
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-----
> -----Original Message-----
> From: Michel Engels [SMTP:Michel.Engels AT DEVOTEAM DOT BE]
> Sent: Thursday, December 28, 2000 9:08 AM
> To: ADSM-L AT VM.MARIST DOT EDU
> 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
|
|
|