After every run of the regression test suite you will have either copy the result files to a particular folder or Archive the files for future reference. Here is an example of how you can use the dos batch file to copy the files and archive the files. The batch file is then called in my selenium test script in C# (Visual Studio 2010)
Here is the batch file copyfile.bat
c: copy C:\selenium\csharp\*.* \\C:\Testing\Selenium_Tests\XXX\XX\Results move C:\selenium\csharp\*.* C:\selenium\csharp\Archive
The first line is copying the files from the location C:\selenium\csharp to \\C:\Testing\Selenium_Tests\XXX\XX\Results and the second command is moving the files to my archive folder.
To call the file copyfile.bat in your test script you will have to use the command
System.Diagnostics.Process.Start("c:\\selenium\\copyfile.bat");
Submitted By: Pavandeep Puddupakkam
