Re: OnPromptReceivedWodtelnetdlx1() is never fired (General questions)
Sai,
1) will the ReceiveFile function gets me any number of files at a time or single file at a time. (can i get *.* files using receivefile)
I think you cannot, but I am not 100 sure. This also depends on the server side of ZModem protocol. You will have to try this by yourself.
2) in the same wasy for Sendfile funtions too. Can I send *.* files using this sendfile.
No, you can't unfortunatelly. You must call SendFile more than once, once for each file
3) some times my login name is beinf passed before my login prompt has come down. which causes me a invalid login. this occurs only some times. I had set Telnet1.Prompt = login: before Telnet1.Connect.
& then I will wait in Private Sub Telnet1_PromptReceived()for the prompt to come. this works fine except some times. So i couldnt understand why its acting like this.
I can't give you answer to this. I can just ask: why didn't you set Login and Password properties so wodTelnetDLX authenticates automatically?
4)Is there a way Where I can check for 2 prompts at a time. at one place of my program there is a chance of getting 2 prompts. So How can i check for either of them.
I may be asked like:
Do you want to receive files? Y/[N]:
or
Do you want to send a file? Y/[N]:is this correct:
Telnet1.Prompt = regex:[Do you want to receive files? Y/[N]:]|[Do you want to send a file? Y/[N]:]$
I'm not expert for regular expressions, so I can't tell you if above regex is ok - you have to try this by yourself. I can only answer that you can't have multiple prompts defined (except if you use regex like above).
Perhaps you could wait for Do you want to and then call Receive to see what's remote system actually asking you? Wouldn't that be a better choice?
Hope I helped.
Complete thread:
- OnPromptReceivedWodtelnetdlx1() is never fired - mk_saiprasad, 2006-01-05, 17:07
- Re: OnPromptReceivedWodtelnetdlx1() is never fired - wodSupport, 2006-01-05, 20:10
- Re: OnPromptReceivedWodtelnetdlx1() is never fired - mk_saiprasad, 2006-01-05, 20:36
- Re: OnPromptReceivedWodtelnetdlx1() is never fired - wodSupport, 2006-01-06, 14:31
- Re: OnPromptReceivedWodtelnetdlx1() is never fired - mk_saiprasad, 2006-01-06, 18:56
- Re: OnPromptReceivedWodtelnetdlx1() is never fired - wodSupport, 2006-01-06, 14:31
- Re: OnPromptReceivedWodtelnetdlx1() is never fired - mk_saiprasad, 2006-01-05, 20:36
- Re: OnPromptReceivedWodtelnetdlx1() is never fired - wodSupport, 2006-01-05, 20:10