PDA

View Full Version : .bat file


cmtar
01-02-09, 12:23 PM
I created a .bat file to start some programs for me at once but is there something i can add to it to automatically log me in (user/pass) as well?

harsh
01-02-09, 12:28 PM
What operating system and version are you referring to?

Sirshagg
01-02-09, 12:30 PM
Log onto what? The OS, an app, a website, etc.

cmtar
01-02-09, 01:23 PM
on this particular pc is XP, but a program not a website. Its a program called workdesk but for example purposes lets say in order to use word you have to click on word and a log on prompt comes up, you type in a user name and pass then a blank doc comes up. Say i got a .bat to start word but just the logon prompt comes up and i have to log in, i want to see if i can do something in the .bat to log me into word also, make sense?

Sirshagg
01-02-09, 01:28 PM
Don't know about batch files but if I'm correctly understanding you I have done similiar things with vbscript. Take a look at:

http://www.devguru.com/Technologies/wsh/quickref/wshshell_SendKeys.html

dennisj00
01-02-09, 03:52 PM
There's a scripting command language called AutoIt that is good at things like this. . . let's you get control of a window (or start a program if not running) and complete dialogs, emulate mouse clicks, etc.

I've used it for automating a variety of tasks that the scheduler and batch files just wouldn't do.

harsh
01-03-09, 12:04 AM
Say i got a .bat to start word but just the logon prompt comes up and i have to log in, i want to see if i can do something in the .bat to log me into word also, make sense?Sounds like you need to have a talk with your IT Manager where you are required to use this package.

xIsamuTM
01-03-09, 09:30 AM
There's a scripting command language called AutoIt that is good at things like this...

A lot of RMT's use AutoIt to work fishing bots or farming bots.

turey22
01-03-09, 09:52 AM
Sounds like you need to have a talk with your IT Manager where you are required to use this package.

You couldnt set it up on your home computer?

harsh
01-03-09, 04:39 PM
You couldnt set it up on your home computer?Only after setting up VPN to work. If it is the product that I'm thinking of, it is a temp agency management package that logs everything to a server similar to Goldmine or ACT!.

If it isn't the one I'm thinking of, there's not much use putting something that interferes in this way between yourself and your selected office suite.