Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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


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
share|improve this question
In general you should use SendInput rather than Send. To prevent translation you can use SendRaw. Escape sequences might also come in handy. – Karan Dec 23 '12 at 21:33
up vote 6 down vote accepted

Try escaping with the backquote:

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

And as a hotstring example:


Which replaces x with :.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .