Re: date/time -vbscript
- From: "Fabrice Canel [MSFT]" <facan@xxxxxxxxxxxxxxxxxxxx>
- Date: Tue, 24 May 2005 20:21:52 -0700
Hi,
A solution:
dt = Date
tm= Time
strFilePrefix= year(dt) & "_" & Month(dt) & "_" & Day(dt) & "-" &
Hour(tm) & "_" & Minute(tm) & "_" & Second(tm)
You can also generate unique identifier using VbScript using
Scriptlet.TypeLib.
Set T = CreateObject("Scriptlet.TypeLib")
Wscript.echo "Here it is: " & T.Guid
Set T = Nothing
Thanks,
Fabrice Canel
"Big D" <BigDaddy@xxxxxxxxxxxxxxxx> wrote in message
news:%23iCHMaLYFHA.2740@xxxxxxxxxxxxxxxxxxxxxxx
>I am creating a log file and need to make sure the log files created is
>unique. How can I get the following:
>
> strFilePrefix= strYear & strMonth & strDay & "-" &strHour & strMinute
> & strSecond
>
.
- References:
- date/time -vbscript
- From: Big D
- date/time -vbscript
- Prev by Date: Re: Reading and processing a EDI File
- Next by Date: Re: how to capture events in a brower?
- Previous by thread: date/time -vbscript
- Next by thread: Re: date/time -vbscript
- Index(es):