Try the following as a batch file:
.AT. echo off echo %1 %2 %3 %4 %5 %6 %7 %8 %9 > c:\datefile .D.OT txt date /t >> c:\datefile.txt time /t >> c:\datefile.txt
You call it like this:
c:\datefile.bat Hello World
and it will create a file like this:
Hello World 30/04/2005 08:00
Hope it helps.
Regards Gary
Gérard Lochon wrote: > Hello you DOS MVP ! > > I want to issue some txt in several succesives files. > Do you know how to create, in a dos batch, a file whose name is made of > a prefix (parameter) and the current datetime ? > > Gérard. > > > ----- Message d'origine ----- De : "Peter Cushing" > <pcushing@rajanimports.net> > À : "ProFox Email List" <profox .AT. leafe .D.OT com> > Envoyé : vendredi 29 avril 2005 15:35 > Objet : [NF] Useful DOS prompt CD command > > >> Found out just recently that you can use the * character when changing >> directory at the command prompt. > > > > > [excessive quoting removed by server]
©2005 Gary Sutherland |