Question
SendKeys to a Batch File?
Hi,
I am creating an automation that involves launching a batch file window and pasting a value into it and then pressing enter to initiate the file. I am wondering what the best method to imitate the paste & enter commands would be. On other forms, I have seen people use the SendKeys method, but I do not see this as an option for me and I cannot manually add context menu items during interrogation of the batch file either.
Any help or examples would be appreciated, thanks.
Please provide an example of the batch file. I would suggest you just alter the bat file to take whatever you are entering as arguments that you could provide at the command line. That would be more reliable than SendKeys. You can also work with the command line through the text adapter, although I haven't seen that used in a while. I suspect that your bat file could easily be altered to accept those as parameters though.