Input from Key Board with Pause

Hi,

I tried writing a script so that I input a command(xxx) in a Powershell and it takes me to a new command line console.

Now if I enter the next commands from PS it does not work.

You can only see the new command console waiting to take input from Keyboard.

How do I do ?

1. After typing xxx command, I wait\pause the script for 2 seconds

2. Next start inputting some commands e.g. "YYY zzz aaa" as a keyboard input only

Thanks,

February 8th, 2015 7:48pm

Sorry but you are not making any sense.

Free Windows Admin Tool Kit Click here and download it now
February 8th, 2015 8:30pm

The case is similar to that of Telnet where we need to enter the password after we log-in and then input few commands from keyboard.

Hope this makes clear understanding..

February 9th, 2015 12:34am

If the program is not designed to do that then it cannot be done with a script.

There are tools that you can get that may do what you need. Try searching.

http://www.autohotkey.com/

Free Windows Admin Tool Kit Click here and download it now
February 9th, 2015 12:37am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics