
Signature
Jon Skeet - <skeet@pobox.com>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too
Hi Jon
I have tried to post it to the scripting group, but, it keeps showing up at the English Group. How can I do it? Please advise. Thank
-Gordo
----- Jon Skeet [C# MVP] wrote: ----
Gordon Chiu <anonymous@discussions.microsoft.com> wrote
> Hi
>> I would like to copy and rename a file with the system date (Windo
> 2000 Professional OS) as the filename by using the FOR scripting cod
> in a batch file
>> Here is my code
>> copy E:\tv63_share\loncprod.prn E:\tv63_share\????????2.pr
> for /f "tokens=2-4 delims=/" %%a in ('DATE /T') do set Date=%%a%%b%%
> E
> cd tv63_shar
> ren loncprod2.prn %Date
>> However, the FOR code used in the parsing date, I got only the da
> and the year; th month is missing. If I change the tokens=1-4, then
> got the "Wed 05192004" with "Wed" in front of it. How can I get onl
> 05192004 without the Wed so that I can use %Date% as my filename
> Please help. Thanks in advance
I'd ask in one of the scripting groups if I were you - I don't think
it's on-topic in this group
--
Jon Skeet - <skeet@pobox.com
http://www.pobox.com/~skee
If replying to the group, please do not mail me to
Jon Skeet [C# MVP] - 19 May 2004 21:59 GMT
> I have tried to post it to the scripting group, but, it keeps showing
> up at the English Group. How can I do it? Please advise. Thanks
I'm not sure what you mean by "the English Group" but I would suggest
using an NNTP newsreader instead of the web access - point your
newsreader (eg Outlook Express) at news.microsoft.com and you should be
able to easily post to the appropriate group that way.

Signature
Jon Skeet - <skeet@pobox.com>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too