TI ExecuteCommand double/single quote syntax?
Posted: Fri Sep 10, 2010 5:12 pm
Hi,
I'm attempting (and failing) to use ExecuteCommand in TI to run the following cmd line:
cmd /k "C:\Progra~1\modelerclient.exe -stream ""C:\Progra~1\streams\Sample_ForecastV2.str"" -PBeginDate=""1994-01-01"" -PEndDate=""1999-12-01"" -execute"
The above works via Windows Start\Run...
Below is the ExecuteCommand TI syntax. The .exe executes, process is visible in Task Manager. However it appears that the commands from '-stream' forward are not being passed correctly. I suspect it is double/single quote setup. Any thoughts?
S_Run = 'cmd /c "C:\Progra~1\modelerclient.exe -stream" "C:\Progra~1\streams\Sample_ForecastV2.str"" -PBeginDate=""1994-01-01"" -PEndDate=""1999-12-01"" -execute"';
ExecuteCommand(S_Run, 0);
I'm attempting (and failing) to use ExecuteCommand in TI to run the following cmd line:
cmd /k "C:\Progra~1\modelerclient.exe -stream ""C:\Progra~1\streams\Sample_ForecastV2.str"" -PBeginDate=""1994-01-01"" -PEndDate=""1999-12-01"" -execute"
The above works via Windows Start\Run...
Below is the ExecuteCommand TI syntax. The .exe executes, process is visible in Task Manager. However it appears that the commands from '-stream' forward are not being passed correctly. I suspect it is double/single quote setup. Any thoughts?
S_Run = 'cmd /c "C:\Progra~1\modelerclient.exe -stream" "C:\Progra~1\streams\Sample_ForecastV2.str"" -PBeginDate=""1994-01-01"" -PEndDate=""1999-12-01"" -execute"';
ExecuteCommand(S_Run, 0);