Saved Bookmarks
| 1. |
Solve : batch file needed to pass in user name? |
|
Answer» HEY guys, I need a batch FILE to pass in a username to a program after it starts it. So I have start mike.exe and I want it to pass in monty as the user name to this program. Any thoughts on how to do this? ThanksCan your program mike.exe take in any arguments?I don't actual know. Is there anyway to find out? The name of the program is KEA! Though when I start it up it asks for my usernamewhere did you get this program...maybe they have an instruction manual or something. another "BLIND" way to find out, you can TRY typing: kea -h or kea /? to see if it gives you any command line help. lets say the kea can take in arguments. What commands would you be using? How would you pass in the user name?if kea can take in commands, eg kea -u john -p password in your batch, just type in "kea -u john -p password" will doIf it takes arguments for the username and password, that would be the best way to do it, as suggested by ghostdog. If it does take arguments, they will be specific to each program. It could be what ghostdog suggested: kea -u john -p password or it could be like kea /user:john /pass:password or almost anything else. If you know it FIRST asks for a username, then a password, you could automate it like echo john >in.txt echo password >>in.txt kea <in.txtgreat guys thanks a lot |
|