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
Free PHP testing and debugging environment
Dropdown with links
Best method for automated use of Defrag, chkdsk, Disk cleanup, etc.
Move a VM
mssql: I would like to have this where clause modified to search for all records or if beginDate & endDate specfified then search between dates
How do I write a batch that will open an Explorer window to a particular folder?
How do i fix "Not a member of string" error in Vb.net code.
Cisco VLAN
Windows 7 - maximize all windows ?
V-lookup