1.

Solve : Output Date to File?

Answer»

I've tried to output the system DATE to a file, and it does output the date, but the cmd window never closes because it's waiting for input.  How do I output the date to a file either SUPPLYING an enter to the system, or BYPASSING the prompt in a .bat file?Code: [SELECT]date /t > datefile.txt

That will eliminate the prompt.

 ALTERNATIVE:

Code: [Select]echo %date% > datefile.txtWonderful!  Thanks so much!
  Code: [Select]echo %date% >filename.txtWhy did you duplicate a post made on October 17th, johnsonben?



Discussion

No Comment Found