Re: [Freedos-user] Writing date and time into log file

2022-12-23 Thread Jim Hall
On Fri, Dec 23, 2022 at 1:42 AM M. Osman Talayman wrote: > > Hello, > > I just can't figure this one out: From a .bat file, I want to write > entries to a log file. Each entry should have a date and time in the > form MMDD:HHMMSS I have searched the internet for solutions on how > to do this,

Re: [Freedos-user] Writing date and time into log file

2022-12-23 Thread Rugxulo
Hi, On Fri, Dec 23, 2022 at 11:44 AM Bret Johnson wrote: > > If you're interested in learning something that will help you more in the > "long term", you may > want to experiment with something like SED (or AWK or ...) as a way to > manipulate text files, > or "whipping up" a custom executable

Re: [Freedos-user] Writing date and time into log file

2022-12-23 Thread Rugxulo
Hi, On Fri, Dec 23, 2022 at 12:18 PM E. Auer wrote: > > > Hi! If you use the FreeCOM version of command.com which > ships with FreeDOS, you could be able to use some magic > extensions such as that option for SET which stores the > output of a command in an environment variable Presumably someth

Re: [Freedos-user] Writing date and time into log file

2022-12-23 Thread E. Auer
Hi! If you use the FreeCOM version of command.com which ships with FreeDOS, you could be able to use some magic extensions such as that option for SET which stores the output of a command in an environment variable, or some magic pre-defined environment variables, or DATE and TIME extensions, bu

Re: [Freedos-user] Writing date and time into log file

2022-12-23 Thread Bret Johnson
> For a tool look at > <https://www.bttr-software.de/products/jhoffmann/#dosutils>: > timestmp +JMD:HIS>>logfile.txt > > This will append, e.g., "20221223:172247" to logfile.txt. If your only concern is this date/time thing, a utility like TIMESTMP will work

Re: [Freedos-user] Writing date and time into log file

2022-12-23 Thread Robert Riebisch
hink they are for > cmd.exe in modern Windows which is more advanced than command.com). As already noted by Bret you need some additional tool (or a more capable shell). For a tool look at <https://www.bttr-software.de/products/jhoffmann/#dosutils>: timestmp +JMD:HIS>>logfile.txt This wil

Re: [Freedos-user] Writing date and time into log file

2022-12-23 Thread Ray Lopez
Back in the day I used a Norton Utilities tool to do this. You might want to go over to ftp.icm.edu.pl and look through their huge DOS archives to see if there is a date utility there you could use.  Another option would be to whip up a little utility with something like QBASIC or FreeBasic. 

Re: [Freedos-user] Writing date and time into log file

2022-12-23 Thread Bret Johnson
> I just can't figure this one out: From a .bat file, I want to write > entries to a log file. Each entry should have a date and time in the > form MMDD:HHMMSS I have searched the internet for solutions on > how to do this, but none of the solutions work (I think they are for > cmd.exe in moder

Re: [Freedos-user] Writing date and time into log file

2022-12-23 Thread Robin E. Douglas
On Fri, Dec 23, 2022 at 2:42 AM M. Osman Talayman wrote: > Hello, > > I just can't figure this one out: From a .bat file, I want to write > entries to a log file. Each entry should have a date and time in the > form MMDD:HHMMSS I have searched the internet for solutions on how > to do this, b