| How the hell do you print a time and date into a txt file from a cmd file |
|
|
Justin
 |
|
1. How the hell do you print a time and date into a txt file from a cmd file |
|
|
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 |
| Date: 25 Jun, 2002 on 10:26 |
|
|
Premium member in staff
       posts: 2298 since: 12 Jan, 2001
 |
 |
2. Re:How the hell do you print a time and date into a txt file from a cmd file |
|
|
Perhaps this question should go into the programming section of this forum(?).
OS/2 Warp-ed to the very end.
|
| Date: 08 Aug, 2002 on 19:38 |
|
|
Team member in staff
       posts: 2128 since: 10 Dec, 2000
 |
 |
3. Re:How the hell do you print a time and date into a txt file from a cmd file |
|
|
| Correct, I've moved this from the Utility board to the Programming board. |
| Date: 15 Sep, 2002 on 22:52 |
|
|
Normal member in user
       posts: 21 since: 10 Jun, 2001 |
 |
4. Re:How the hell do you print a time and date into a txt file from a cmd file |
|
|
| try the following: echo Úte%, %time%>foo.txt JasonL |
| Date: 01 Oct, 2002 on 23:36 |
|
|
Normal member in user
       posts: 21 since: 10 Jun, 2001 |
 |
5. Re:How the hell do you print a time and date into a txt file from a cmd file |
|
|
| 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 |
| Date: 01 Oct, 2002 on 23:38 |
|
|
Normal member in user
     posts: 1 since: 30 Oct, 2003 |
 |
6. Re:How the hell do you print a time and date into a txt file from a cmd file |
|
|
| Try the following: @echo | date |find "Current" >document.txt @echo | time |find "Current" >>document.txt ( Note: ("Current"=case sensitive) and (>, >> = create, extend file) |
| Date: 30 Oct, 2003 on 13:39 |
|
|
| How the hell do you print a time and date into a txt file from a cmd file |
|
|
| All times are CET+1. |
< Prev. | P. 1 | Next > |
|