Index: /trunk/MFCtooling/replay/LogParser.cpp
===================================================================
--- /trunk/MFCtooling/replay/LogParser.cpp	(revision 153)
+++ /trunk/MFCtooling/replay/LogParser.cpp	(revision 154)
@@ -15,4 +15,5 @@
 	
 }
+
 
 
@@ -40,7 +41,17 @@
 		ZeroMemory(&pi, sizeof(pi));
 		ZeroMemory(&si, sizeof(si));
-		CreateProcess(NULL, runCommand, NULL, NULL, FALSE, 0, NULL, NULL, &si, &pi);
+
+		//divide runCommand into path to executable and parameters
+		wchar_t *pdest = _tcschr(runCommand, ' ');
+		int positionSpace = (int)(pdest - runCommand + 1);
+		_TCHAR *executable = new _TCHAR[512];
+		for(int i=0; i<positionSpace; i++) executable[i] = runCommand[i];
+		executable[positionSpace] = '\0';
+
+		CreateProcess(executable, L" c:\\programme\\mahr\\marwin\\commands/pause.dll", NULL, NULL, FALSE, 0, NULL, NULL, &si, &pi);
+		//CreateProcess(NULL, runCommand, NULL, NULL, FALSE, 0, NULL, NULL, &si, &pi);
 		hProcess = pi.hProcess;
 		CloseHandle(pi.hThread);
+		
 		std::wcout << L"waiting " << startupTime << L" ms for application under test to intialize" << std::endl;
 		Sleep(startupTime);
