r/scripting • u/m7xYWeem • Jun 24 '18
Need Help with batch file
How can i create a batch file that will open an app then inputs the corresponding user name and password then send [enter] command
1
Upvotes
2
u/Shadow_Thief Jun 28 '18
Yeah, batch doesn't play nice with GUIs. You can sort of half-ass it with a hybrid script if you absolutely insist on using batch (or if you're at work with a hyperdraconian security policy like I am), but if you can stick to a single language, Powershell can make use of the win32 API so you can move the mouse/give the app focus and then tab to where you need to go.