- Feb 18, 2001
- 30,990
- 5
- 81
Here is the deal. I wish to make a batch file (or macro) for logging into 5 different mainframe systems. The problem is, I do not know how to make a batch file type in a windows enviroment. Lemme explain.
Here is a generic example. To log into mainframe e-mail, I have to open a session with the mainframe. Lets call it "email.exe". Then, when that window pops up, I have to type "hrqst2" <enter>. pause for a second, (to let the mainframe do the request) then on the next screen, I have the keystrokes of: evadman <tab> <tab> password <enter>. then pause again, then I have to type "mail".
In this instance, these would be my exact keystrokes from beginnning to end:
<"email.exe" window opens after being called from the batch file> (cursor is already in correct spot on every screen.)
hrqst2 <enter>
pause for 2 seconds
evadman <tab> <tab> password <enter>
pause for 2 seconds
mail <enter>
after this is all done, then another "email.exe" would be opened with a totaly different sequence and keystrokes. this would be done a total of 5 times. I would prefer to do it all with one click if possible. This will be on an NT system FYI.
I have NO idea how to do this, and my search on google was no help. Can anyone point me to a web page or explain how to do this? I would be most grateful.
Here is a generic example. To log into mainframe e-mail, I have to open a session with the mainframe. Lets call it "email.exe". Then, when that window pops up, I have to type "hrqst2" <enter>. pause for a second, (to let the mainframe do the request) then on the next screen, I have the keystrokes of: evadman <tab> <tab> password <enter>. then pause again, then I have to type "mail".
In this instance, these would be my exact keystrokes from beginnning to end:
<"email.exe" window opens after being called from the batch file> (cursor is already in correct spot on every screen.)
hrqst2 <enter>
pause for 2 seconds
evadman <tab> <tab> password <enter>
pause for 2 seconds
mail <enter>
after this is all done, then another "email.exe" would be opened with a totaly different sequence and keystrokes. this would be done a total of 5 times. I would prefer to do it all with one click if possible. This will be on an NT system FYI.
I have NO idea how to do this, and my search on google was no help. Can anyone point me to a web page or explain how to do this? I would be most grateful.