#-------------------------------------------------------- # File: HandleCapture.eps # # Handle DarkSyline capture file # # Modifications: # 01/13/2003 Created. #-------------------------------------------------------- @echo off; if ($argc != 1) { echo "Usage: $argv[0]"; return false; } @record on; # get resource directory ifnot (`getdirectory -resources`) { echo "* Unable to get resources directory"; return false; } string $rDir = GetCmdData("dir"); ifnot (defined($rDir[0])) { echo "* Unable to retrieve resources directory"; return false; } string $resPath = "$rDir\\DarkSkyline"; @record off; string $captureFile = GetInput("Enter a local capture file"); string $prefix = GetInput("Enter a capture file prefix"); @echo on; if (`local run -command "\\"$resPath\\DS_ParseLogs.exe\\" \\"$captureFile\\" \\"$prefix\\"" -redirect "ParseLogs_$prefix"`) { echo ""; echo "Capture file parsed"; echo ""; return true; } else { echo ""; echo "*** FAILED to parse capture file"; echo ""; return false; }