On linux it works fine, but apparantly, on windows I have to encapsulate my path-string with `'"'` (single-double-single-quotes)
But! ..also, because on windows, I have to encapsulate my path with double-quotes first, (because of the `:`)
I tried almost every form of escaping but I cannot get it to work on windows. Is the a special escaping-sequence I should use on windows, for the `TVSendCmd`?
Here is an example of how I try it. (the cmd string comes from outside normally). I would like to know how the escaping in the `cmd`-string should be
Code: Select all
...
char result[4096] = {0};
char *cmd = "tv_LoadImage '\"'\"P:/path with spaces/image.png\"'\"' stretch"
int ret = TVSendCmd(iFilter, cmd, result);
Code: Select all
tv_LoadImage '"'"P:/path with spaces/image.png"'"' stretch