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
SQL Server 2005 options on the databases
Permutations and Combination on a set of data to get desired outcome
iexplore.exe virus
How to assign a range name in code
Need Software to Create Simple House Blueprint and Insert into Brochure
PHP Query for asterisk phone system - How to display live data from this query
Navicat View Builder
Dell 5310n - Additional tray not showing in printer settings
Getting a list of VLANs and SVIs on "lots" of Cisco switches
Password recovery on a Cisco Cataclyst 3550 switch