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.
Escaping charactrers in CSPro
-
- Posts: 1796
- Joined: December 5th, 2011, 11:27 pm
- Location: Washington, DC
Re: Escaping charactrers in CSPro
You can't use the + operator to combine two strings. This is why you're getting the error on the fourth line. You can write:
errmsg("TaskList = %d", execsystem(concat('cmd /k tasklist /fi "imagename eq csentry.exe" > ',defaultPath)));
Re: Escaping charactrers in CSPro
Gregory Martin wrote:You can't use the + operator to combine two strings. This is why you're getting the error on the fourth line. You can write:
errmsg("TaskList = %d", execsystem(concat('cmd /k tasklist /fi "imagename eq csentry.exe" > ',defaultPath)));
Thank you, it has worked.
Mutua
Re: Escaping charactrers in CSPro
Hi,
This is exceptionally decent and wonderful post.
I am very happy joined this forum.
I like it exceptionally much....!!!!
Thanks alot...
This is exceptionally decent and wonderful post.
I am very happy joined this forum.
I like it exceptionally much....!!!!
Thanks alot...
We offer up to date http://pass4sure.co.uk/ exam practice questions with self paced test engine to help you pass comptia network+ exam and complete your ccent course kumc you should also find ccnp wireless training for your Northwestern University