Unable to put quotes inside commandline strings eg Sendstr="AT!ENTERCND="A710""
Serial and TCP terminal for engineering and debugging
Brought to you by:
crun
"C:\Program Files (x86)\BEL\Realterm\realterm.exe" baud=115200 port=25 data=8n1 rows=50 cols=80 display=3 sendstr="0123456789" sendstr="9876543210" sendstr="AT!ENTERCND="A710"" CR
How can I embedded " in the sendstr in script file?
Thanks
Lu
This is a dos question really.
Look at these:
http://stackoverflow.com/questions/7760545/cmd-escape-double-quotes-in-parameter
http://stackoverflow.com/questions/562038/escaping-double-quotes-in-batch-script
If all else fails, you could put all your strings in an ini file and load that.
Note that you don't have to put everything in the ini file (you could just have "sendstr=1234" etc in it).
(ini file in V3.0.0.24+)
Also note SENDSTR is DEPRECIATED (V3.0.0.23) See STRING1, STRING2. Future version will use this to send to port.
Last edit: Simon Bridger 2016-01-28
Hmm never mind me spouting BS, it doesn't seem to work, the double quotes don't make it through into Realterm.
So use an escape sequence ie \x22 see http://www.asciitable.com/
sendstr="AT!ENTERCND="A710\x22"
When you press SENDASCII this will be expanded to double-quote
As above note, SENDSTR is depreciated after 3.0.0.23, so you should change it or remember that it will break in future.
To help in debugging, you can use the INI dialog (from MISC tab). There is a "view parameters" button that will let you see what is actually on the commandline of RT ie what cmd passed through.
Currently it seems that no matter what you do the double-quote is not making it through to the commandline RT sees, but this might be a delphi thing...
Thank you, /x22 work perfectly.
I try to download newer version, but can not figure out yet! could you send
me a link?
how the ini file create and use?
Thanks
Lu
On Thu, Jan 28, 2016 at 3:44 PM, Simon Bridger crun@users.sf.net wrote:
Ticket moved from /p/realterm/support-requests/25/
Can't be converted:
Please try the new version I have made for you:
If you are not using V3, install V3.0.0.29 installer from www.i2cchip.com/realterm
Then test this new version https://www.dropbox.com/s/uwci0lcucobdncr/realterm.exe?dl=0
and report back here.
This version accepts escaped quotes like this:
send1="AT!ENTERCND=""A710"""