Re: Adding System Date to Output File Name

Tech-Archive recommends: Fix windows errors by optimizing your registry



JRS: In article <1156811071.699716.3090@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>,
dated Mon, 28 Aug 2006 17:24:31 remote, seen in news:microsoft.public.sc
ripting.vbscript, thao.ton@xxxxxxxxxx posted :

Novice question. How do I modify my script to:

1)
2) include the run date (YYYYMMDD) in the output file naming convention
so that daily output files are not overridden

X = Now
X = (Year(N)*100+Month(N))*100+Day(N)

Then include X in the name string, using & .


--
© John Stockton, Surrey, UK. ?@merlyn.demon.co.uk Turnpike v4.00 IE 4 ©
<URL:http://www.jibbering.com/faq/>? JL/RC: FAQ of news:comp.lang.javascript
<URL:http://www.merlyn.demon.co.uk/vb-dates.htm> VB maths, dates, sources.
<URL:http://www.merlyn.demon.co.uk/> TP/BP/Delphi/jscr/&c, FAQ items, links.
.