Yes. I forgot to escape the escape. Thank you so much.
2016-07-21 16:07 GMT-04:00 Sarah Goslee :
> You could escape the backslash.
>
> system("cmd 'a\\tb'")
>
>
> On Thu, Jul 21, 2016 at 4:00 PM, Michael Peng
> wrote:
> > Hi,
> >
> > I am trying to use system() to run some command in OS. such a
You could escape the backslash.
system("cmd 'a\\tb'")
On Thu, Jul 21, 2016 at 4:00 PM, Michael Peng
wrote:
> Hi,
>
> I am trying to use system() to run some command in OS. such as
>
> system("cmd 'a\tb')
>
> however, it alway runs
> cmd 'ab'
> instead of
> cmd 'a\tb'
>
> How can I prevent
Hi,
I am trying to use system() to run some command in OS. such as
system("cmd 'a\tb')
however, it alway runs
cmd 'ab'
instead of
cmd 'a\tb'
How can I prevent system to interpret 'a\tb' to 'ab'?
Thanks
[[alternative HTML version deleted]]
___
3 matches
Mail list logo