Hi Scott,

 

 Before the loop you would set Pw to equal your password.

 

In the loop

 

 Left(Pw,1) takes the first character of your password, i.e., if your password was “ABCD” then  Left(Pw,1) is equal to “A” and

 Mid(Pw,2)  takes all the characters from the 2nd character on – so in the above example it would be equal to “BCD”.  The next time thru the loop Left(Pw,1) would be equal to “B”  and Mid(Pw,2) would be equal to “CD” and so on.

 

Hope that helps (I often have to interpret Rich J)

 

Sara

 

Sara McNeil

Boston Software Systems

866 653 5105

508 653 5105 Ext 6

www.bostonworkstation.com 

 


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of White, Scott A
Sent: Thursday, December 23, 2004 4:29 PM
To: [email protected]
Subject: RE: [Talk] Script is losing a character

 

Hi Rich,

I appreciate the reply.

In this statement:  Key Left(Pw,1)

I'm wondering if the Pw is where I would place my actual passsword.

What does the 1 represent?

Thanks,

Scott

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]On Behalf Of Rich McNeil
Sent: Thursday, December 23, 2004 4:25 PM
To: [email protected]
Subject: RE: [Talk] Script is losing a character

Some telnet connections cann’t take characters too quickly.  This is especially true for usernames and passwords.  Try something like:

 

Do

      Key Left(Pw,1)

      Pw = Mid(Pw,2)

      Wait 0.5  ‘0.1 is probably slow enough

Loop Until Len(Pw) = 0

 

Rich McNeil

Boston Software Systems

866 653 5105

www.bostonworkstation.com


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of White, Scott A
Sent: Thursday, December 23, 2004 2:29 PM
To: [email protected]
Subject: [Talk] Script is losing a character

 

Hello everyone,

 

Has anyone else encountered this?

 

I have a script that pulls up the Telnet command.  When I run it from my

desktop it is fine.  It places the name scooter and the command reboot

where it should.

 

When I place the same script on my run-time machine it ALWAYS drops

one of the o's in both scooter and reboot.  So I placed an extra o in both

of those words.  It still puts scoter and rebot in when prompted.  Both machines

are Win2K running BWS - ver. 7.18 revision 387.

 

Any ideas?

 

Thanks,

Scott

 


CONFIDENTIALITY NOTICE: This e-mail communication and any attachments
may contain confidential and privileged information for the use of the
designated recipients named above.  If you are not the intended
recipient, you are hereby notified that you have received this communication in
error and that any review, disclosure, dissemination, distribution or copying
of it or its contents is prohibited. If you have received this
communication in error, please notify Saratoga Hospital immediately by e-mail at
[EMAIL PROTECTED] and destroy all copies of this communication
and any attachments.

Reply via email to