| Subject | : | How the hell do you print a time and date into a txt file from a cmd file |
| Author | : | Justin justinm@vocom.com.au |
| Date | : | 25 Jun, 2002 on 10:26 |
| Hi I'm trying to write a batch file and can't for the life of me find a way to print the time and date into a text file from at cmd/bat file if anyone knows how to do this in OS2 warp 4 could you please send me an email with how to do this |
| Subject | : | Re:How the hell do you print a time and date into a txt file from a cmd file |
| Author | : | BigWarpGuy |
| Date | : | 08 Aug, 2002 on 19:38 |
| Perhaps this question should go into the programming section of this forum(?).
OS/2 Warp-ed to the very end. |
| Subject | : | Re:How the hell do you print a time and date into a txt file from a cmd file |
| Author | : | Kim |
| Date | : | 15 Sep, 2002 on 22:52 |
| Correct, I've moved this from the Utility board to the Programming board. |
| Subject | : | Re:How the hell do you print a time and date into a txt file from a cmd file |
| Author | : | JasonL fdt93@yahoo.com |
| Date | : | 01 Oct, 2002 on 23:36 |
| try the following: echo Úte%, %time%>foo.txt JasonL |
| Subject | : | Re:How the hell do you print a time and date into a txt file from a cmd file |
| Author | : | JasonL fdt93@yahoo.com |
| Date | : | 01 Oct, 2002 on 23:38 |
| Sorry, the one time I don't preview before I post is the time it messes up. Let's try again: echo %date%, %time%>foo.txt |
| Subject | : | Re:How the hell do you print a time and date into a txt file from a cmd file |
| Author | : | kkafetz |
| Date | : | 30 Oct, 2003 on 13:39 |
| Try the following: @echo | date |find "Current" >document.txt ( Note: ("Current"=case sensitive) and (>, >> = create, extend file) |