Help creating a batch file to auto login to a website


  1. Posts : 2
    windows 7 premium 32
       #1

    Help creating a batch file to auto login to a website


    I have created the following batch file to automatically load and login to a site, I created it and tested it on a computer running xp, but I can't get it to work on a windows 7 machine...

    "@ECHO OFF
    TITLE Water Monitor Auto Start Up
    mode con: cols=42 lines=1

    REM Create a time delay Visual Basic file of 1 second
    cd c:\
    IF NOT EXIST ECHO Wscript.Sleep 1000 >> 1second.vbs

    :timeloop

    REM Using a for loop to count for 20 seconds to allow startup script to finish
    for %%d in (20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0) do TITLE Water Monitor Auto Start Up in %%d Secs

    && ECHO. && 1second.vbs && cls

    start https://10.176.136.53/www/info/Menu/CPU.html?UID=root,PW=root

    :end"

    any help would be appreciated.
      My Computer


  2. Posts : 6,285
    Windows 10 Pro X64
       #2

    Where is it failing? What is TITLE after the do supposed to accomplish?
      My Computer


  3. Posts : 2
    windows 7 premium 32
    Thread Starter
       #3

    When it runs on windows 7 it opens explorer but fails to load the page or login to the page.

    The title is simply to put a title on the window when the file runs.
      My Computer


  4. Posts : 6,285
    Windows 10 Pro X64
       #4

    Change that line to:

    start
    "C:\Program Files (x86)\Internet Explorer\iexplore.exe" https://10.176.136.53/www/info/Menu/CPU.html?UID=root,PW=root
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 22:00.
Find Us