Skip to main content
Formated as code, still won#t solve the original problem
Source Link
Seth
  • 9.2k
  • 1
  • 22
  • 36

I don't think this can be done using a batch file as batch has its own limitations, instead you can you the below VB script.

Set IE = CreateObject("InternetExplorer.Application") IE.navigate "http://TheWebsite" IE.Visible = True

While IE.Busy WScript.Sleep 50 Wend

Set ipf = IE.document.all.username ipf.Value = "Username" Set ipf = IE.document.all.password ipf.Value = "Password" Set ipf = IE.document.all.Submit ipf.Click IE.Quit

Set IE = CreateObject("InternetExplorer.Application")
IE.navigate "http://TheWebsite"
IE.Visible = True`

While IE.Busy
    WScript.Sleep 50
Wend

Set ipf = IE.document.all.username
ipf.Value = "Username" 
Set ipf = IE.document.all.password
ipf.Value = "Password" 
Set ipf = IE.document.all.Submit
ipf.Click 
IE.Quit

Update Website name, uname and passwd and then save this as AutoWebsite.vbs

I don't think this can be done using a batch file as batch has its own limitations, instead you can you the below VB script.

Set IE = CreateObject("InternetExplorer.Application") IE.navigate "http://TheWebsite" IE.Visible = True

While IE.Busy WScript.Sleep 50 Wend

Set ipf = IE.document.all.username ipf.Value = "Username" Set ipf = IE.document.all.password ipf.Value = "Password" Set ipf = IE.document.all.Submit ipf.Click IE.Quit

Update Website name, uname and passwd and then save this as AutoWebsite.vbs

I don't think this can be done using a batch file as batch has its own limitations, instead you can you the below VB script.

Set IE = CreateObject("InternetExplorer.Application")
IE.navigate "http://TheWebsite"
IE.Visible = True`

While IE.Busy
    WScript.Sleep 50
Wend

Set ipf = IE.document.all.username
ipf.Value = "Username" 
Set ipf = IE.document.all.password
ipf.Value = "Password" 
Set ipf = IE.document.all.Submit
ipf.Click 
IE.Quit

Update Website name, uname and passwd and then save this as AutoWebsite.vbs

Source Link
manjesh23
  • 1.7k
  • 2
  • 14
  • 31

I don't think this can be done using a batch file as batch has its own limitations, instead you can you the below VB script.

Set IE = CreateObject("InternetExplorer.Application") IE.navigate "http://TheWebsite" IE.Visible = True

While IE.Busy WScript.Sleep 50 Wend

Set ipf = IE.document.all.username ipf.Value = "Username" Set ipf = IE.document.all.password ipf.Value = "Password" Set ipf = IE.document.all.Submit ipf.Click IE.Quit

Update Website name, uname and passwd and then save this as AutoWebsite.vbs