|
Answer» Hi,
I am trying to start an application ( Coded in VB) using a batch file. As soon as application's exe starts it pos up a window to SLECT a username and ENTER teh password. How do I pass username and password for that application using a batch file?
I have used 'exit' command to exit the cmd window after completion of the batch file. But its not working and it seems computer is unable to get teh feed back from teh application that it GOT started. How do I CLOSE the cmd window after my application starts?
Please help me. Thanks.you mean you want to pass the variables from your input box to batch ??No. I want to pass parameters ( My application's Username and password) from batch file to the opened application. I hope now I am clear.i am trying to do the same thing on a batch program i am working on. I hope someone can figure it outohh, you want the batch to send the input?well what i am wanting is to be able to prompt a username and password and enter them both in order to login but i cant seem to figure out how to get that to work i no how to prompt a password but not bothso...
Code: [Select]set /p un=Username: set /p pw=Password: ?Quote from: Cringle09 on August 03, 2009, 03:45:12 PM i am trying to do the same thing on a batch program i am working on. I hope someone can figure it out
Start your own thread, you will get better assistance that way.Quote from: BatchFileBasics on August 03, 2009, 07:51:05 PMso...
Code: [Select]set /p un=Username: set /p pw=Password: ?
That will only work if the application READS Enviroment variables, but beyond that its pretty much impossible.If you want a script that will start a Windows GUI program and click OK buttons, type stuff into dialog boxes, etc, it can be done, one well known application is called Auto-It, but this is often the basis for virus or illicit activity. If a program is designed for manual use, it would be better to rewrite it to accept passed parameters.
As for the other question,
QuoteHow do I close the cmd window after my application starts? investigate the START command.
|