Discussion Locked

any programmers out there

0 helpful
4 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

created a batch file to open an application . . . but once the application is open it requires a click on the " OK " button and a password to be entered, and then a click on the " OK " button again.
I want to be able to create this batch file and have it automatically click the OK button and pre enter the password and click on the OK button again . . .

Is this possible in a batch file ? ? ?

4 replies

by tig2

When you say batch file, I assume that you are in DOS world. In this case, the answer is no.

You have a number of variables here- and batch files only do fairly high level stuff- it will open the app for you but would require that the pass field tolerate a parameter to allow a preset.

The problem compounds if this pass must change on any kind of schedule.

From a security standpoint, you don't want anything that you feel SHOULD be pass protected to be defeatable via bat file.

I don't think that PERL will help you on this either. My PERL is WAY rusty and there are better than me on these boards, but I can't think of a script that will do what you want.

Hope this is helpful! perhaps better minds than mine will come to the table.

by tlman12

We do something like this where I work,]it's a runas install script

i don't know how to do it but i know that it uses a program called AutoIt
http://www.autoitscript.com/autoit3/

like I said i can't help you much past that but maybe it will help put you on the right track

what our program does is when you execute the exe it right clicks a file selects runas types the username and password and continues

But as stated in the previous post, this cannot be done with a batch file alone

Hope this helps

by vas_galati

You must send at least mouse and keyboard events to the window. I don't know if you can with Microsoft scripting, probably not.

This discussion is closed to new replies.