Computing.Net > Forums > Programming > batch file open program enter pwd

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

batch file open program enter pwd

Reply to Message Icon

Name: jdeblois
Date: August 27, 2008 at 10:22:05 Pacific
OS: xp
CPU/Ram: any
Product: any
Comment:

I have a batch file that opens several programs one of which requires two passwords, can I integrate these into the batch file so i dont have to type them in every time?

Jonathan DeBlois



Sponsored Link
Ads by Google

Response Number 1
Name: Judago
Date: August 29, 2008 at 06:16:16 Pacific
Reply:

I don't know of anyway of doing this with batch alone, but provided the windows either take focus in the same order and nothing interupts or they are always placed in the same position in the same order and nothing interupts it would be possible to use nircmd.

Nircmd is a small freeware command line tool you can use to set the curser position and send mouse clicks and keystrokes, amongst many other things.It can be used from a batch file and from the command line provided that it's executable is either in the current directory or a path directory.

See here for more info and download.

Just a couple of things, antivirus software might not like your scripts and your passwords would be unencrypted.


0
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: batch file open program enter pwd

Batch File: Open HTM in current dir www.computing.net/answers/programming/batch-file-open-htm-in-current-dir/16423.html

Batch file to enter password protec www.computing.net/answers/programming/batch-file-to-enter-password-protec/16637.html

Small batch file/scripting program www.computing.net/answers/programming/small-batch-filescripting-program/2353.html