Newsgroups: comp.os.msdos.djgpp From: rjvdboon AT cs DOT vu DOT nl (Boon van der RJ) Subject: Re: creating msdos file Nntp-Posting-Host: sloep90.cs.vu.nl References: <848982691 DOT 8450 AT dejanews DOT com> <329BA934 DOT D7B AT cs DOT com> Sender: news AT cs DOT vu DOT nl Organization: Fac. Wiskunde & Informatica, VU, Amsterdam Date: Fri, 29 Nov 1996 09:14:24 GMT Message-ID: Lines: 23 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp John M. Aldrich (fighteer AT cs DOT com) wrote: >calaaa12 AT giascl01 DOT vsnl DOT net DOT in wrote: >> >> Hello, I would like to know how do i create a a file in the DDMMYY.TXT format >> taking the date from msdos using a batch file. >> Please email this to me. > >First, this is an inappropriate place to post that question. Try >posting it on a newsgroup specifically devoted to questions about DOS >usage. > >That said, I don't think it can be done. DOS batch commands simply >don't have the required facility to edit text on the fly. In a Unix >shell script, what you ask would be easy, but in DOS you would have to >have at least one program written in a language other than batch to >format the date appropriately to use in a filename. > >-- >--------------------------------------------------------------------- >| John M. Aldrich, aka Fighteer I | fighteer AT cs DOT com | >| Proud owner of what might one | http://www.cs.com/fighteer | >| day be a spectacular MUD... | Plan: To make Bill Gates suffer | >---------------------------------------------------------------------