6

I wish to send the following string to cmd:

C:\xampp\mysql\bin\mysql.exe -u root

The problem is to send the colon,

I tried

Send, c:Send, \xampp\mysql\bin\mysql.exe -u root

and

Send, c{:}Send, \xampp\mysql\bin\mysql.exe -u root

But they all turn out to be

Send, c;Send, \xampp\mysql\bin\mysql.exe -u root
fall
  • 217

1 Answers1

11

Try escaping with the backquote:

Send C`:\xampp\mysql\bin\mysql.exe -u root

And as a hotstring example:

::x::`:`

Which replaces x with :.

  • Pay attention to the difference between (accent grave) and ' (single quote). Alternatively, you can use{:}` – Cadoiz May 04 '20 at 20:23