Computer Hope
Microsoft => Microsoft DOS => Topic started by: silvrwood on October 17, 2008, 01:54:31 PM
-
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?
-
date /t > datefile.txt
That will eliminate the prompt.
8)
-
alternative:
echo %date% > datefile.txt
-
Wonderful! Thanks so much!
;D
-
echo %date% >filename.txt
-
Why did you duplicate a post made on October 17th, johnsonben?