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
Migrating WSUS repository directory into different drive
Which facility to select within Windows environment
MS Office VBA to convert Word Header to text
SharePoint 2010 search service always been disabled
Cannot Access Application Data
64 bit application will not connect to 32 bit Office 2003 MS Access on a Windows XP 64 bit PC
Exchange 2003 Account Outlook Mailbox Security
sort field based on color
How to create PDF files from .Net application without needing Acrobat installed
delay notifications from AOL and GT.RR.COM, exchange 2003