Escaping charactrers in CSPro
Posted: November 1st, 2013, 4:14 pm
I am trying to pass defaultPath variable to line 4 below.
1. errmsg("File Assigned = %d", setFile(instanceFile, concat(pathname(Temp),"instances.txt"),create ));
2. defaultPath = concat(pathname(Temp),"instances.txt");
3. errmsg(defaultPath);
4. errmsg("TaskList = %d", execsystem('cmd /k tasklist /fi "imagename eq csentry.exe" > '+defaultPath));
but am getting some error;
ERROR: Expecting right parenthesis ')' in a function call near line 7 in NASSEPV_LAUNCHAPP_FF procedure
I just know its because of the way am using defaultPath variable, how can use it'?
Lines 1, 2 and 3 are ok.
1. errmsg("File Assigned = %d", setFile(instanceFile, concat(pathname(Temp),"instances.txt"),create ));
2. defaultPath = concat(pathname(Temp),"instances.txt");
3. errmsg(defaultPath);
4. errmsg("TaskList = %d", execsystem('cmd /k tasklist /fi "imagename eq csentry.exe" > '+defaultPath));
but am getting some error;
ERROR: Expecting right parenthesis ')' in a function call near line 7 in NASSEPV_LAUNCHAPP_FF procedure
I just know its because of the way am using defaultPath variable, how can use it'?
Lines 1, 2 and 3 are ok.