Hi Osman, > 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 YYYYMMDD: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 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 will append, e.g., "20221223:172247" to logfile.txt. Cheers, Robert -- BTTR Software https://www.bttr-software.de/ DOS ain't dead https://www.bttr-software.de/forum/ _______________________________________________ Freedos-user mailing list Freedos-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freedos-user