Yahoo Answers is shutting down on May 4th, 2021 (Eastern Time) and the Yahoo Answers website is now in read-only mode. There will be no changes to other Yahoo properties or services, or your Yahoo account. You can find more information about the Yahoo Answers shutdown and how to download your data on this help page.

How do I create a batch file to execute a windows based program AND enter a username and password?

I can create the batch file to start the program, but once the program starts it pops a login window which prompts a username and password. I'd like for the batch file to enter the username and password to finish launching the program without any user interaction. I know it can be done but don't know the proper syntax.

This is to launch a remote viewing program for security camera's on a watch desk that will be manned by random people without special skills. All other actions on the computer will be admin'd out.

Update:

After doing some more research it turns out that ability has been programmed out for security reasons (from the batch file). There are other ways to get around it, but its more elaborate programming, something not possible in a batch file.

3 Answers

Relevance
  • Joe
    Lv 7
    8 years ago
    Favorite Answer

    Some programs have command line options for this. You'll have to check the specific program you're using.

    In a command window, try entering:

    prog_name /h

    or

    prog_name /help

    That will often give you the command line options.

    You might also look for a "prog_name.INI" file in the program's installation directory. It might provide you with a default username/password option.

    If all else fails, read the manual, or contact the vendor.

    Good luck.

  • 8 years ago

    Try just adding the username and password at the end of the line.

    The program might support %1 and %2 type of arguments.

  • Thraix
    Lv 4
    8 years ago

    Look up vTask Studio. I think you can find that to be very helpful as well. Check it out.

    Source(s): www.vtaskstudio.com/
Still have questions? Get your answers by asking now.