| |
Blotto
Posts: 3
Score: 0
Joined: 7/3/2004
From:
Status: offline
|
Hi, I have a problem with a piece of code of my website. The interpreter says me, that there would be an error, but see yourself: [code] <script language="VBScript"> Sub Button1_OnClick Dim strLocalFile, strRemoteFile Dim nError strLocalFile = "c:\temp\License.txt" strRemoteFile = "/pub/Word/License.txt" FileTransfer1.Passive = True FileTransfer1.FileType = 2 ' Binary Form1.Button1.Disabled = True nError = FileTransfer1.Connect("ftp.zeus02.de", 21) If nError <> 0 Then MsgBox FileTransfer1.LastErrorString, vbExclamation Form1.Button1.Disabled = False Exit Sub End If nError = FileTransfer1.GetFile(strLocalFile, strRemoteFile) If nError <> 0 Then MsgBox FileTransfer1.LastErrorString, vbExclamation Else MsgBox "your License was downloaded! You are now allowed to use enoWORD legit!", vbInformation End If FileTransfer1.Disconnect Form1.Button1.Disabled = False End Sub Sub FileTransfer1_OnProgress(FileName, FileSize, BytesCopied, Percent) window.status = "Downloading " & FileName & " (" & BytesCopied & " bytes copied)" End Sub </script> <body> <object ID="FileTransfer1" width=28 height=28 classid="clsid:7682472C-0D6F-4D9B-A262-5739C0AD3879"> <param name="_cx" value="741"> <param name="_cy" value="741"> </object> <form name="Form1"> <input type="button" value="Download" name="Button1"> </form>
|
|