Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

1 Answer 1

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.