tags:

views:

62

answers:

0

I have to use SendKeys to send a filepath to a text box in VB6. The code is like this -

cSK.SendKeys "c+(:)\Test.txt"

I have replaced the : with +(:) to enable SendKeys to type out : and not ; (It is like holding the shift key down).

My problem is - when I execute this code, it all works fine but the text that is typed into the text box is :\Test.txt. Somehow, the char before the : is omitted. Any help? What am I doing wrong?