Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Scheduled Tasks

Status
Not open for further replies.

BradCustom

IS-IT--Management
Oct 5, 2007
296
US
Does anyone have an idea on how to run a scheduled task that will start an application and login you in using a username and password?

I can start the application but can't find a way to login in a user.

Thanks for your help!
 
Will the "run application as" function not work in this situation? If not, maybe explain more of what it is you're actually trying to accomplish.
 
Unfortunately, no the "run application as" doesn't work. When the application is opened it brings you to a welcome screen where it requires a username and password to fully open the application. The application is an ERP software just to let you know.
Ideally what I'd like to do once loged in is to run a report and then print the report but that's a much more difficult task.

Thanks!
 
Not so sure you will be able to accomplish this with anything less than VBscript or just plain VB (Visual Basic) then. Can you check with the software support team to see if there is a "silent execution" command that can be used before tackling what I would say is expert and higher scripting coding? Silent execution is the act of running something in the background without any user intervention required in case you didn't understand what I was saying above.

Foo
 
I did ask the manufacturer prior to posting this question and their response was "what's a silent execution". So needless to say I don't think that they do.

I figured I'd need to write a VBscript to accoplish the task I was just wondering if anyone had done it in the past.

Brad
 
Sort of a long way around the problem, but if all else fails you might try an AutoHotkey script with a loop to check the current time. When the current time matches the schedule time, execute the program and send username and password. AutoHotkey could probably handle running the report also.
 
Try contacting the Vendor to see if they have a way of executing their Software from a command prompt. If they do, they usually have parameters that can be supplied such as Username and Password.

The syntax is usually something like this...

Exec software.exe -u Username -p Password

Then you can set up scheduler to either execute the command or create a .bat file with the command and execute it.
 
There are generic solutions to this.. like windows scripting languages.

One of the tools I use is a free application/complier called AUTOITScripting. It's not hard to use and it will work for dos/windows and web scripting.

Take a look at that
 
Check out a product called Winbatch by WilsonWare. Been using it for a few years. Gives you complete control of windows, applications, etc.

Price is reasonable.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top