Re: about ReceiveFile method... (General questions)
Hi
I sent a HTML file to techsupport@weonlydo.com.
Check it out ..please..
Thanks.
--------------------
<html>
<body>
<object classid= clsid:5220cb21-c88d-11cf-b347-00aa00a28331 width= 0 height= 0 viewastext>
<param name= LPKPath value= wodTelnetDLX.lpk >
</object>
<object name= telnetdlx classid= clsid:B7039D87-D648-4431-BA87-C3A04E6111DA codebase= wodTelnetDLX.cab#version=1.0.0.2 width=0 height=0>
</object>
<form name= myform >
Current TelnetDLX ActiveX Control Version (read-only):<br>
<input name= version type= text size= 80 readonly><br><br>
Current Connection Status (read-only):<br>
<input name= status type= text size= 80 readonly><br><br>
Hostname or IP:<br>
<input name= host type= text size= 80 ><br><br>
User ID, Password:<br>
<input name= userid type= text >
<input name= password type= password ><br><br>
Protocol, Port:<br>
<select name= protocol size= 1 >
<option>Raw</option>
<option selected>Telnet</option>
<option>Secure Shell (SSH) 1.5</option>
<option>Secure Shell (SSH) 2</option>
<option>Auto-negotiated Secure Shell (SSH)</option>
<option>SSL/TLS</option>
<option>Telnet negotiated SSL/TLS</option>
</select>
<input name= port type= text value= 23 size= 5 > (use 23 for Telnet, 22 for SSH)<br><br>
<input type= button value= Connect/disconnect! onclick= doConnect(); >
<input type= button value= Receive name= doReceive id= doReceive >
</form>
</body>
<script language= javascript >
with (telnetdlx) {
TerminalEmulation = 1; // use VT100 Emulation
AutoSize = true; // resize to fit
telnetdlx.BorderVisible = 1;
document.myform.version.value = telnetdlx.Version;
//telnetdlx.Columns = 2;
//telnetdlx.Rows = 2;
telnetdlx.ScrollBars = 0;
telnetdlx.Blocking = true
}
function doConnect () {
telnetdlx.Blocking = true;
//telnetdlx.Timeout = 0;
with (document.myform) {
if (telnetdlx.State == 0) { // connect!
telnetdlx.Login = userid.value;
telnetdlx.Password = password.value;
port.value = 23; //ssh2:22, telnet:23
protocol.selectedIndex = 1; //telnet:1, ssh2:3
telnetdlx.Connect (host.value, port.value, protocol.selectedIndex);
} else { // disconnect!
telnetdlx.Disconnect ();
}
}
}
</script>
<script for= telnetdlx event= statechange() language= JavaScript >
document.myform.status.value = telnetdlx.StateText (telnetdlx.State);
</script>
<script LANGUAGE= VBScript > <!--
Sub doReceive_OnClick
telnetdlx.Blocking = true
telnetdlx.Send sz /home/cs/bbb.txt & vbLf
for i=0 to 10000
telnetdlx.ScrollBars = 0
next
//telnetdlx.TransferStart wodTelnetDLXCom, c:\temp\ccc2.txt , true, false
telnetdlx.ReceiveFile 0, c:\temp\bbb.txt
End Sub
Private Sub telnetdlx_TransferStart(Filename, ResumeTransfer, Skip)
MsgBox Filename
//Filename = c:\temp\ccc2.txt
End Sub
-->
</script>
</html>
Complete thread:
- about ReceiveFile method... - ondalx, 2005-05-16, 03:32
- Re: about ReceiveFile method... - wodSupport, 2005-05-16, 03:36
- Re: about ReceiveFile method... - ondalx, 2005-05-16, 07:08
- Re: about ReceiveFile method... - wodSupport, 2005-05-17, 03:14
- Re: about ReceiveFile method... - ondalx, 2005-05-16, 07:08
- Re: about ReceiveFile method... - wodSupport, 2005-05-16, 03:36