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
Vista Machine keeps booting to startup repair
How can I add an external USB hard drive as a backup source in Symantec Backup Exec 12?
file system structure on the disk is corrupt on \Device\HarddiskVolumeShad
owCopy31
Real sample software contract
How do I prevent my app from being indexed by search engines
Crystal reports
Help against Brute Force
Dell Studio 1535 and upgrading (downgrading) to XP Pro
Corsair Hydro Cooling H50 vs. CoolIt ECO A.L.C. vs. Performance air cooling
Adding a Windows Server 2003 File Server to a Windows 2000 Domain