Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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 4 down vote accepted

Try escaping with the backquote:

Send C`:\xampp\mysql\bin\mysql.exe -u root
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.