create a batch file for running an application with password

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
amansran
Posts: 2
Joined: 23 Nov 2011 06:01

create a batch file for running an application with password

#1 Post by amansran » 23 Nov 2011 06:07

how to create a batch file for running a GUI application that accepts password.
so that i dont need to re-write password again and again but just run the bat file...!! as i need to run the application 60 times a day..! :O

amansran
Posts: 2
Joined: 23 Nov 2011 06:01

Re: create a batch file for running an application with pass

#2 Post by amansran » 23 Nov 2011 06:20

amansran wrote:how to create a batch file for running a GUI application that accepts password.
so that i dont need to re-write password again and again but just run the bat file...!! as i need to run the application 60 times a day..! :O





Hey somebody reply!!!!!!!!!!!!

Ed Dyreen
Expert
Posts: 1569
Joined: 16 May 2011 08:21
Location: Flanders(Belgium)
Contact:

Re: create a batch file for running an application with pass

#3 Post by Ed Dyreen » 23 Nov 2011 12:10

'
Depends on who wrote the GUI, If it was written by me, it would accept those args and never even have to show a GUI.
Anyways you probably didn't write it and most authors just don't think about that.

There is a simple way and a simple way to solve this:

-the simple way, is using vbscript to press the buttons, vbscript is not very clever so you can never be sure your input will arrive where it should.

-the simpler way, is using autoIT.

I suggest autoit as vbscript is just no reliable option !
AutoIt - AutoItScript :arrow:
http://www.autoitscript.com/site/autoit/

Post Reply