Mail Archives: djgpp/1996/11/29/04:55:05
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 |
>---------------------------------------------------------------------
- Raw text -