Question

Locked

How to: Batch File to Login To Chosen Websites...?

By rajsdoshi ·
How do I create a Batch File to Login-in into the following websites?

-----------------------------------
One website's sourcecode fragment looks like:
-----------------------------------

<input type="text" name="UID" size="xx" maxlength="xx" AUTOCOMPLETE="off"/>
class="login">Password:<br>
<input type="PASSWORD" name="Pwd" size="xx" AUTOCOMPLETE="off" maxlength="xx"/>
<input type="image" name="image" src="xx;jsessionid=ABC" alt="submit UID/PWD">

-----------------------------------
Another website's sourcecode looks like this:
-----------------------------------

<div class="content">
.....
<class="label">User name:</class>
<input class="textbox" maxlength="xx" name="username" size="xx" type="text">
<class="label">Password:</class><br />
<input class="textbox" maxlength="xx" name="password" size="xx" type="pwdtext">
.....
<a href="javascript:linkSubmit4('UidPwdEntry','xx');"


Again, all I want to do is to automate the login process to reduce errors in typing Uid/Pwd, and to speed-up the login process. (I will use my legal user and pwds; I am not trying to hack into any site.)

Or, any Links where I can learn BATCH /JCL type syntax, and how to use Web-page Source Code and Session-Id to do what I want to do?

Thank you very much in advance.

This conversation is currently closed to new comments.

8 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Answers

Collapse -

We can't read it.......

by ThumbsUp2 In reply to How to: Batch File to Log ...

First of all, you can't post code here in the forums. It gets executed instead of displayed.

Second, it appears as though you're asking for an awful lot from a FREE forum. Have you taken any classes yet in HTML, PHP or even JavaScript specifically aimed at Sessions and Secure Logins? I don't think so because if you had, you wouldn't be asking "how to use Web-page Source Code". Perhaps you should consider hiring a consultant.

Collapse -

I don't think so

by seanferd In reply to We can't read it.......

or pre tags would have been used.

Collapse -

no need to be so harsh

by jpmyers15 In reply to We can't read it.......

Why respond if you are not going to be very helpful?

Collapse -

No need to respond to a thread over a year old.

by seanferd In reply to no need to be so harsh

You aren't being very helpful, either. The OP is an idiot who didn't even check his post after posting, and never considered that code would be rendered.

Believe me, community members know what they are doing. They will sometimes be a bit harsh, but have their reasons.

You will also notice the OP never came back, never provided the code. He didn't care. (edit: Well, he did mark Jackie's post as helpful, but didn't bother to comment or display the code properly.)

Pfft. All that aside, welcome to TR! :) I see from your other posts that you are trying to move up in the IT food chain. I wish you the best of luck, as you seem to already have the qualifications.

Collapse -

reply

by jpmyers15 In reply to No need to respond to a t ...

Thanks, I appreciate the best wishes. I am definitely trying to move up or at least get into a better position for the long term. My current position is moving away from real IT work and it's kind of hurting my resume! Good luck to you

Collapse -

Ouch.

by seanferd In reply to reply

Don't you just hate it when you aren't doing the work you were hired to do?

Been there, done that. In my case, it only related to job satisfaction (and heavy lifting), and a realization the company was imploding a bit. It had no real effect on any career path I may have fantasized that I had.

Collapse -

It's a lot easier

by Jacky Howe In reply to How to: Batch File to Log ...

with a script file. All of the instructions are in here. You will be looking for WshShell.SendKeys
and some keywords are
WScript.Sleep 1000
WshShell.AppActivate

Windows Script 5.6 Documentation

http://www.microsoft.com/downloads/details.aspx?FamilyID=01592C48-207D-4BE1-8A76-1C4099D7BBB9&displaylang=en

Edit to add some extra information.

<i>If you think that any of the posts that have been made by all TR Members, have solved or contributed to solving the problem, please Mark them as <b>Helpful</b> so that others may benefit from the outcome. </i>

Back to Web Development Forum
8 total posts (Page 1 of 1)  

Related Discussions

Related Forums