Set WshShell = WScript.CreateObject("WScript.Shell") WshShell.Run "E:\MIBOR_TimingTest\MIBOR\mibor.usr", 9 ' Give loadrunner time to load WScript.Sleep 500 ' Do The Paste WshShell.SendKeys "{F5}" #### #!/usr/bin/perl use win32::OLE qw(in); $search="Vuser End"; open(INFO, "E:\\Mibor_TimingTest\\Mibor\\output.txt"); @array=; close (INFO); foreach $line(@array){ if ($line =~ /$search/) { do this stuff etc.. }