I have a log file in XML format that i want to delete through task scheduler.
I want to delete this because the logs accumulate every week and gets as big as 80GB. It affects the performance of the PC.
The file is located in C:\ProgramData\folder1\folder2\Logs Folder\ErrorLog.xml
can someone give a code on how to delete this using batch file. I only want to delete the ErrorLog.xml not the folder.
i already know how to run the batch file on task scheduler. i just don't know how to create the code.
Thank you
I want to delete this because the logs accumulate every week and gets as big as 80GB. It affects the performance of the PC.
The file is located in C:\ProgramData\folder1\folder2\Logs Folder\ErrorLog.xml
can someone give a code on how to delete this using batch file. I only want to delete the ErrorLog.xml not the folder.
i already know how to run the batch file on task scheduler. i just don't know how to create the code.
Thank you
My Computer
- Computer type
- PC/Desktop
- Computer Manufacturer/Model Number
- HP
- OS
- Windows 7 Pro 32bit
- CPU
- Dual Core
- Antivirus
- Trend Micro