Professional Documents
Culture Documents
Delete Unwanted Files and Results Folders From LoadRunner Script Folder1
Delete Unwanted Files and Results Folders From LoadRunner Script Folder1
Delete Unwanted Files and Results Folders From LoadRunner Script Folder1
Description of action
exists
file.
%FilesDeleted.txt
del output.txt /s >> %temp%FilesDeleted.txt
deleted files.
%result*) do (
deleted folders.
rd /s /q %%a
rd result1 /s /q
This batch file can be run either from within a script folder, or from a top-level folder containing
multiple LoadRunner scripts. If run in a top level folder it loops through all sub-folders deleting
files and results folders as it goes. In both cases, the list of deleted files and folders is displayed
using notepad.exe .
Some of my colleagues prefer to have a copy of the tidyup.cmd batch file in all their script
folders and some prefer ro run it from the top level folder. If you want a copy of tidyup.cmd in
all your sub-folders the copytidy.cmd file can be used to copy the batch file to multiple subfolders.
Batch file copytidy.cmd
Description of action
/b) do (
the folder.
)
)