Microsoft
Software
Hardware
Network
Question : How do I create a text file?
I would like to create a text file each new day such that the text file is named like this: C:\Logs\YYYY-MM-DD.txt.
So today's text file should look like C:\Logs\2010-06-28.txt.
I will hook this batch/script to Task Scheduler so the part I need help with is the actual batch file. An actual script I can run would be appreciated it. Thanks.
Answer : How do I create a text file?
for /f "tokens=1,2,3 delims=/ " %%a in ('DATE /T') do set date=%%c-%%b-%%a
echo > c:\logs\%date%.txt
Random Solutions
Is it normal to get Java errors during Oracle 11g installation
Subnets
Form Load Failed in my organisational form library
Is it possible to put an image in a table cell and have it overflow UNDERNEATH the text in adjacent cells?
Remove Hyperlink
To clear or not to clear ARP cache
Change additional 32-bit printer drivers - SBS 2008
clickable column
What is the best way to have a website accessible to iPhones?
Looking for bicycle cadence indicator using colored LEDs to show speed