[resolved] Execute windows command using tSystem component

One Star

[resolved] Execute windows command using tSystem component

I am trying to execute a db backup command through tSystem component. I need to pass multiple options to the command as below:
"pg_dump -h 100.1.1.2 -p 5432 -U tstusr -w -Fc -b -v -n xxx -f C:\db_bkp\xxx.bkp tstdb"
Some of the above values are passed through context variables. Hence, in tSystem component I have selected option 'Use Array Command' and provided the values as in below image

However, I get an error message stating: "Error in the component's properties:Invalid escape sequence (valid ones are  \b  \t  \n  \f  \r  \"  \'  \\ )"
Could some one point out where I am going wrong?
Thanks in advance.

Accepted Solutions
Seventeen Stars

Re: [resolved] Execute windows command using tSystem component

hi,
this is a comman 'error' : use '/' in place of '\'. it should works
regards
laurent

All Replies
Seventeen Stars

Re: [resolved] Execute windows command using tSystem component

hi,
this is a comman 'error' : use '/' in place of '\'. it should works
regards
laurent
Moderator

Re: [resolved] Execute windows command using tSystem component

Hi,
You need to use the escape char \ for your directory.
Best regards
Sabrina
--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.
One Star

Re: [resolved] Execute windows command using tSystem component

Thank you all. Its resolved