cancel
Showing results for 
Search instead for 
Did you mean: 

How to delete log folders under th Project Suite log folder

SOLVED
Highlighted
Super Contributor

How to delete log folders under th Project Suite log folder

We are running Testcomplete Tests on remote machines which have TestExecute .. With the help of batch file and Task scheduler we are running the tests for every 30 minutes of the day. SO the tests are running every day i.e. 24/7.

 

Now I am seeing those project Suite log files have occupied lot of memory which can make machine very slow. 

Does any one know how to delete the files under the project suite Log Folder automatically using the batch file programming ? I am using the following command which delete the folder under the Log folder which are 2 days old. But the issue is it give the error if it do not find the folders which are 2 days old . How can I avoid this error ?

 

ForFiles /p "C:\Users\nisgupta\Documents\TestComplete\IS\Finance\HSC\Budget Revision System\Budget Revision System HSC\Log" /s /d -2 /c "cmd /c del /f /q @path"

 

Thanks

NG

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Community Leader

Hi,

 

Take a look at this thread:

 

https://community.smartbear.com/t5/TestComplete-Functional-Web/Is-there-a-way-to-delete-the-log-summ...

 

You can automatically configure TC to delete log files for You.

View solution in original post

3 REPLIES 3
Highlighted
Community Leader

Hi,

 

Take a look at this thread:

 

https://community.smartbear.com/t5/TestComplete-Functional-Web/Is-there-a-way-to-delete-the-log-summ...

 

You can automatically configure TC to delete log files for You.

View solution in original post

Super Contributor

@Wamboo 

 

Thanks you for the updates. I see that it delete the files in the folders. What about the folders ?

 

Thanks

NG

Highlighted
Super Contributor

@Wamboo 

 

Ignore my previous comments. I Tested this feature . look like it is working now. 

 

Thanks

NG

New Here?
Join us and watch the welcome video:
Announcements
Join TechCorner Challenge!
Want a fun and easy way to learn TestComplete? Try solving weekly TechCorner challenges and get into the Leaderboard!


Challenge Status

Get properties of a web page element

See replies!

Compare images using the Region Checkpoint

See replies!

Compare HTML table with Excel file and correct data in Excel file

Participate!

How to execute remote test and obtain results via Test Runner REST API

Participate!
Top Kudoed Authors