This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

How to clear loadrunner temps automatically ?

Can anyone suggest  how to clear the loadrunner temps automatically

Parents
  • Verified Answer

    ,

    I use a batch file to cleanup all kind of temporary results of LR on LRE, LGs etc. It is scheduled via Windows Task Scheduler once a day.

    The core of this batch file is, you can add more calls to forfile.exe with other paths to check:

    set LOG=C:\Temp
    set DAYS=30
    :: assume LR_PATH is set.
    C:\Windows\System32\forfiles.exe /P "%LR_PATH%\Temp" /M "brr_*" /D -%DAYS% /C "cmd /c IF EXIST @PATH\ ( echo %date% %time% DIR : @PATH & rmdir /S /Q @PATH 2>&1 ) ELSE ( echo %date% %time% FILE: @PATH & del /F  /S /Q  @PATH  2>&1 )" >>%LOG%\CleanUpLRE%DAYS%Days.log

    How to ask questions

    Reward contributions via likes or 'verified answers'

Reply
  • Verified Answer

    ,

    I use a batch file to cleanup all kind of temporary results of LR on LRE, LGs etc. It is scheduled via Windows Task Scheduler once a day.

    The core of this batch file is, you can add more calls to forfile.exe with other paths to check:

    set LOG=C:\Temp
    set DAYS=30
    :: assume LR_PATH is set.
    C:\Windows\System32\forfiles.exe /P "%LR_PATH%\Temp" /M "brr_*" /D -%DAYS% /C "cmd /c IF EXIST @PATH\ ( echo %date% %time% DIR : @PATH & rmdir /S /Q @PATH 2>&1 ) ELSE ( echo %date% %time% FILE: @PATH & del /F  /S /Q  @PATH  2>&1 )" >>%LOG%\CleanUpLRE%DAYS%Days.log

    How to ask questions

    Reward contributions via likes or 'verified answers'

Children