亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? clstransfer.cls

?? simple vb ftp file tranfer project code
?? CLS
?? 第 1 頁 / 共 2 頁
字號:
VERSION 1.0 CLASS
BEGIN
  MultiUse = -1  'True
  Persistable = 0  'NotPersistable
  DataBindingBehavior = 0  'vbNone
  DataSourceBehavior  = 0  'vbNone
  MTSTransactionMode  = 0  'NotAnMTSObject
END
Attribute VB_Name = "clsTransfer"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = True
Attribute VB_PredeclaredId = False
Attribute VB_Exposed = False
Option Explicit
'*********************************
'P.Gibbs 23-07-02
'
'Provides facilities for ftp to and from
'a remote webserver using information
'contained in a text file

'Becareful with some commands in that they may
'not overwrite.  May have to delete files first
'to make sure.

'Basic commands needed are delete local files,
'delete remote files, get remote files from server,
'and put put local files to server.  Also need the
'commands to set up the connection to the ftp server

'Inet ftp
'--------
'
'CD file1
'Change Directory.
'Changes to the directory specified in file1. Execute , "CD docs\mydocs"
'
'CDUP
'Change to Parent.
'Same as "CD .."
'Execute , "CDUP"
'
'Delete file1
'Deletes the file specified in file1.
'Execute , "DELETE discard.txt"
'
'Dir [ file1 ]
'Searches the directory specified in file1. If file1 isn't supplied,
'the current working directory is searched. Use the GetChunk method to
'return the data.
'Execute , "DIR /mydocs"
'
'GET file1 file2
'Retrieves the remote file specified in file1, and creates a new local
'file specified in file2.
'Execute , "GET getme.txt C:\gotme.txt"
'
'MkDir file1
'Creates a directory as specified in file1. Success is dependent on user
'privileges on the remote host.
'Execute , "MKDIR /myDir"
'
'PUT file1 file2
'Copies a local file specified in file1 to the remote host specified in file2.
'Execute , "PUT C:\putme.txt /putme.txt"
'
'PWD
'Print Working Directory.
'Returns the current directory name. Use the GetChunk method to return the data.
'Execute , "PWD"
'
'Quit
'Terminate current connection
'Execute , "QUIT"
'
'RECV file1 file2
'Same as GET.
'Execute , "RECV getme.txt C:\gotme.txt"
'
'RENAME file1 file2
'Renames a file. Success is dependent on user privileges on the remote host.
'Execute , "RENAME old.txt new.txt"
'
'RmDir file1
'Remove directory. Success is dependent on user privileges on the remote host.
'Execute , "RMDIR oldDir"
'
'SEND file1
'Copies a file to the FTP site. (same as PUT.)
'Execute , "SEND C:\putme.txt /putme.txt"
'
'Size file1
'Returns the size of the file specified in file1.
'Execute "SIZE /largefile.txt"
'
'Important   If your proxy server is a CERN proxy server, direct FTP
'connections (using the Execute method) are disallowed. In that case,
'to get a file, use the OpenURL method with the Open, Put, and Close
'statements, as shown earlier in "Saving to a File Using the OpenURL
'Method." You can also use the OpenURL method to get a directory listing
'by invoking the method and specifying the target directory as the URL.



Dim logfile As New clsLogFile
Dim m_ftpfile As String
'*********************************
Public Sub DoTransfer(ByVal in_strFTPFile As String)
  
  Call ReadFile(in_strFTPFile)

End Sub
'*********************************
Private Sub ReadFile(ByVal strFileName As String)

On Error GoTo Err_OpenFile
    
    Dim strLine As String
    
    If strFileName = "" Then
      strFileName = App.Path & "\vbftp.txt"
    End If

    Const forReading = 1, ForWriting = 2, ForAppending = 8
    Dim fs, f
    Set fs = CreateObject("Scripting.FileSystemObject")
    Set f = fs.OpenTextFile(strFileName, forReading, True)
   
    'm_ftpfile = f.ReadAll
    'frmMain.txtDisplay.Text = m_ftpfile
    
    Do While f.AtEndOfStream <> True
        DoEvents
        strLine = f.ReadLine
        If strLine <> "" And Mid(strLine, 1, 1) <> "#" Then
            Parse (strLine)
        End If
    Loop
    
    f.Close

Exit_OpenFile:
    Exit Sub

Err_OpenFile:
    If Command$ = "" Then
        MsgBox Err.Number & " " & Err.Description
    Else
        logfile.AddToLogFile ("Error reading file " & Err.Number & " " & Err.Description & vbCrLf)
        End
    End If
    Screen.MousePointer = vbDefault
    Resume Exit_OpenFile

End Sub
'*********************************
Private Sub Parse(ByVal line As String)

    Dim strData As String
    Dim pos As Integer
    Dim strLocal As String
    Dim strRemote As String
    Dim strFiles() As String
    Dim strDate As String
    Dim i As Integer

    '------------------------------------------
    'Access type
    'Command format :   [ACCESSTYPE] = <data>
    'Example :          [ACCESSTYPE] = icDirect
    'Inet command :     ftp.AccessType = icDirect
    If InStr(1, LCase(line), "[accesstype]") > 0 Then
        pos = InStr(1, line, "=")
        strData = Trim(Mid(line, pos + 1))
        frmMain.ftp.AccessType = strData
        logfile.AddToLogFile ("ftp.AccessType = " & strData & vbCrLf)
        Exit Sub
    End If
    
    '------------------------------------------
    'Set up proxy server, if needed
    'Command format :   [PROXY] = <data>
    'Example :          [PROXY] = www.new.co.uk
    'Inet command :     ftp.Proxy = ""
    If InStr(1, LCase(line), "[proxy]") > 0 Then
        pos = InStr(1, line, "=")
        strData = Trim(Mid(line, pos + 1))
        frmMain.ftp.Proxy = strData
        logfile.AddToLogFile ("ftp.Proxy = " & strData & vbCrLf)
        Exit Sub
    End If
    
    '------------------------------------------
    'Request timeout
    'Command format :   [REQUESTTIMEOUT] = <data>
    'Example :          [REQUESTTIMEOUT] = 60
    'Inet command :     ftp.Requesttimout = 60
    If InStr(1, LCase(line), "[requesttimeout]") > 0 Then
        pos = InStr(1, line, "=")
        strData = Trim(Mid(line, pos + 1))
        frmMain.ftp.RequestTimeout = strData
        logfile.AddToLogFile ("ftp.RequestTimeout = " & strData & vbCrLf)
        Exit Sub
    End If
    
    '------------------------------------------
    'The URL of the ftp site
    'Command format :   [URL] = <data>
    'Example :          [URL] = www.thisurl.co.uk
    'Inet command :     ftp.URL = "www.thisurl.co.uk"
    If InStr(1, LCase(line), "[url]") > 0 Then
        pos = InStr(1, line, "=")
        strData = Trim(Mid(line, pos + 1))
        frmMain.ftp.URL = strData
        logfile.AddToLogFile ("ftp.url = " & strData & vbCrLf)
        Exit Sub
    End If
    
    '------------------------------------------
    'The protocol,in this case icFTP
    'Command format :   [PROTOCOL] = <data>
    'Example :          [PROTOCOL] = icFTP
    'Inet command :     ftp.Protocol = icFTP
    If InStr(1, LCase(line), "[protocol]") > 0 Then
        pos = InStr(1, line, "=")
        strData = Trim(Mid(line, pos + 1))
        'frmMain.ftp.Protocol = strData
        frmMain.ftp.Protocol = icFTP
        logfile.AddToLogFile ("ftp.Protocol = " & strData & vbCrLf)
        Exit Sub
    End If
    
    '------------------------------------------
    'Sets the directory on the remote host
    'Command format :   [REMOTEHOST] = <remote directory>
    'Example :          [REMOTEHOST] = /courinfo/general/
    'Inet command :     ftp.RemoteHost = "/courinfo/general/"
    If InStr(1, LCase(line), "[remotehost]") > 0 Then
        pos = InStr(1, line, "=")
        strData = Trim(Mid(line, pos + 1))
        frmMain.ftp.RemoteHost = strData
        logfile.AddToLogFile ("ftp.RemoteHost = " & strData & vbCrLf)
        Exit Sub
    End If
   
    '------------------------------------------
    'Sets the ftp port, usually 21
    'Command format :   [REMOTEPORT] = <data>
    'Example :          [REMOTEPORT] = 21
    'Inet command :     ftp.RemotePort = "21"
    If InStr(1, LCase(line), "[remoteport]") > 0 Then
        pos = InStr(1, line, "=")
        strData = Trim(Mid(line, pos + 1))
        frmMain.ftp.RemotePort = strData
        logfile.AddToLogFile ("ftp.RemotePort = " & strData & vbCrLf)
        Exit Sub
    End If
    
    '------------------------------------------
    'The ftp site user name
    'Command format :   [USERNAME] = <data>
    'Example :          [USERNAME] = fred
    'Inet command       ftp.UserName = "fred"
    If InStr(1, LCase(line), "[username]") > 0 Then
        pos = InStr(1, line, "=")
        strData = Trim(Mid(line, pos + 1))
        frmMain.ftp.UserName = strData
        logfile.AddToLogFile ("ftp.UserName = " & "xxxx" & vbCrLf)
        Exit Sub
    End If
    
    '------------------------------------------
    'The ftp site password
    'Command format :   [PASSWORD] = <data>
    'Example :          [PASSWORD] = blogs
    'Inet command :     ftp.Password = "blogs"
    If InStr(1, LCase(line), "[password]") > 0 Then
        pos = InStr(1, line, "=")
        strData = Trim(Mid(line, pos + 1))
        frmMain.ftp.Password = strData
        logfile.AddToLogFile ("ftp.Password = " & "xxxx" & vbCrLf)
        Exit Sub
    End If
    
    '------------------------------------------
    'Command format :   [DOCUMENT] = <data>
    'Example :          [DOCUMENT] = test
    'Inet Command :     ftp.Document = "test"
    If InStr(1, LCase(line), "[document]") > 0 Then
        pos = InStr(1, line, "=")
        strData = Trim(Mid(line, pos + 1))
        frmMain.ftp.Document = strData
        logfile.AddToLogFile ("ftp.Document = " & strData & vbCrLf)
        Exit Sub
    End If
    
    '------------------------------------------
    'Change local directory (not working)
    'Command format :   [LOCALDIRECTORY] = <directory name>
    'Example :          [LOCALDIRECTORY] = c:\temp\files\
    If InStr(1, LCase(line), "[localdirectory]") > 0 Then
        pos = InStr(1, line, "=")
        strData = Trim(Mid(line, pos + 1))
        'Call FTPCmd("L0CALDIRECTORY", strData)
        logfile.AddToLogFile ("ftp.localdirectory = " & strData & vbCrLf)
        Exit Sub
    End If
    
    '------------------------------------------
    'Chnage remote directory (not working)
    'Command format :     [REMOTEDIRECTORY] = <remote directory>
    'Example :            [REMOTEDIRECTORY] = /root/courinfo/
    If InStr(1, LCase(line), "[remotedirectory]") > 0 Then
        pos = InStr(1, line, "=")
        strData = Trim(Mid(line, pos + 1))
        'Call FTPCmd("REMOTEDIRECTORY", strData)
        logfile.AddToLogFile ("ftp.remotedirectory = " & strData & vbCrLf)
        Exit Sub
    End If
    
    '------------------------------------------
    'Delete a remote file
    'Command format :     [DELETEREMOTEFILE] = <file spec>
    'Example :            [DELETEREMOTEFILE] = /root/courinfo/display.htm
    'Deletes a specific file from the given remote directory
    'Only deletes one file
    If InStr(1, LCase(line), "[deleteremotefile]") > 0 Then
        pos = InStr(1, line, "=")
        strData = Trim(Mid(line, pos + 1))
        frmMain.ftp.Execute , "DELETE """ & strData & """"
            Do While frmMain.ftp.StillExecuting
                DoEvents
            Loop
        logfile.AddToLogFile ("ftp.delete = " & strData & vbCrLf)
        Exit Sub
    End If
    
    '------------------------------------------
    'Delete all files in a given directory
    'Command format :     [DELETEDIRFILES] = <remote directory>
    'Example :            [DELETEDIRFILES] = /root/courinfo/*.*
    'Deletes all files from the given remote directory
    'First need to find out what files are in the remote directory and
    'then delete one at a time.
    If InStr(1, LCase(line), "[deletedirfiles]") > 0 Then
      pos = InStr(1, line, "=")
      strData = Trim(Mid(line, pos + 1))
        DeleteRmtDirContents (strData)
        logfile.AddToLogFile ("ftp.delete = " & strData & vbCrLf)
        Exit Sub
    End If
    
    '------------------------------------------
    'Command format :     [CD] = <remote directory>
    'Example :            [CD] = /root/courinfo/
    'Change directory
    If InStr(1, LCase(line), "[cd]") > 0 Then
        pos = InStr(1, line, "=")
        strData = Trim(Mid(line, pos + 1))
        frmMain.ftp.Execute , "CD & strData & chr(34)"
            Do While frmMain.ftp.StillExecuting
                DoEvents
            Loop
        logfile.AddToLogFile ("ftp.Execute CD " & strData & vbCrLf)
        Exit Sub
    End If
    
    '------------------------------------------
    'Command format :     [PUT] = <local file name> ; <remote file name>
    'Example :            [PUT] = C:\Temp\tofilename.txt ; fromfilename.txt
    'FTP single file onto the server
    If InStr(1, LCase(line), "[put]") > 0 Then
        pos = InStr(1, line, "=")
        strData = Trim(Mid(line, pos + 1))
        
        strFiles = Split(strData, ";")
        strLocal = Trim(strFiles(0))
        strRemote = Trim(strFiles(1))
            
        frmMain.ftp.Execute , "PUT """ & strLocal & """ " & strRemote
            Do While frmMain.ftp.StillExecuting
                DoEvents
            Loop
          logfile.AddToLogFile ("ftp.Execute , 'put' " & strData & vbCrLf)
        Exit Sub
    End If
    
    '------------------------------------------
    'Command format :       [PUTFILES] = <local directory> ; <remote directory>
    'Example :              [PUTFILES] = C:\TEMP\ ; /test/
    'Puts files from the local drive on to the remote server
    'PUT over rights the remote files
    If InStr(1, LCase(line), "[putfiles]") > 0 Then
        pos = InStr(1, line, "=")

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产精品入口麻豆原神| 一区二区三区在线视频观看| 99视频精品全部免费在线| 亚洲成人动漫一区| 亚洲欧洲av一区二区三区久久| 日韩亚洲欧美综合| 一道本成人在线| 岛国一区二区三区| 久久精品免费看| 五月天中文字幕一区二区| 国产精品成人午夜| 久久精品亚洲国产奇米99| 欧美高清视频不卡网| 91国产福利在线| 99精品在线观看视频| 国产91精品久久久久久久网曝门| 七七婷婷婷婷精品国产| 亚洲午夜免费电影| 亚洲日本欧美天堂| 中文字幕av不卡| 国产午夜亚洲精品羞羞网站| 日韩免费看的电影| 日韩你懂的在线播放| 91精品国产综合久久久久久久久久| 99视频有精品| 93久久精品日日躁夜夜躁欧美| 国产电影一区在线| 国产伦精品一区二区三区免费| 日韩精品欧美成人高清一区二区| 一区二区在线免费观看| 亚洲六月丁香色婷婷综合久久| 亚洲欧美在线视频| 国产精品久久久久永久免费观看 | 精品国产乱码久久久久久久久| 制服丝袜中文字幕一区| 欧美日韩久久久| 欧美日韩国产精品自在自线| 日本韩国一区二区| 欧美日韩视频在线第一区 | 久久一夜天堂av一区二区三区| 日韩一区二区三区免费观看| 777久久久精品| 日韩亚洲欧美在线观看| 精品国产自在久精品国产| 精品国产成人在线影院| 久久久久国色av免费看影院| 国产日产亚洲精品系列| 欧美精彩视频一区二区三区| 国产精品欧美久久久久无广告 | 成人h精品动漫一区二区三区| av色综合久久天堂av综合| 色综合天天综合狠狠| 91成人在线精品| 91精品国产综合久久香蕉麻豆| 精品免费一区二区三区| 国产婷婷色一区二区三区在线| 国产精品久久综合| 亚洲va在线va天堂| 精品亚洲成a人| 成人激情av网| 欧美日韩免费观看一区三区| 精品毛片乱码1区2区3区| 国产日韩视频一区二区三区| 亚洲男人的天堂在线aⅴ视频| 亚洲国产sm捆绑调教视频| 男人的天堂久久精品| 国产成人综合自拍| 在线一区二区三区四区五区 | 亚洲成人精品一区| 久久99蜜桃精品| 99久久综合精品| 欧美日韩五月天| 国产日韩欧美一区二区三区综合 | 婷婷成人激情在线网| 国模少妇一区二区三区| 97国产一区二区| 欧美一区二区视频网站| 中文字幕精品—区二区四季| 亚洲国产一区二区三区青草影视| 久久精品国产**网站演员| 97久久久精品综合88久久| 欧美日韩dvd在线观看| 欧美高清在线一区二区| 午夜精品成人在线| 成人激情电影免费在线观看| 91精品在线一区二区| 国产精品久久毛片av大全日韩| 日韩**一区毛片| 91在线你懂得| 久久综合色播五月| 亚洲一区二区三区四区的| 国产精品白丝jk黑袜喷水| 欧美影院一区二区| 国产精品国产精品国产专区不蜜| 琪琪久久久久日韩精品| 色噜噜狠狠一区二区三区果冻| 亚洲精品在线三区| 日韩av中文字幕一区二区| 91视频在线观看| 国产欧美一区二区精品性色 | 亚洲丝袜制服诱惑| 精品一区二区精品| 欧美日本一区二区| 亚洲欧美日韩一区二区| 国产成人av电影免费在线观看| 欧美日韩大陆一区二区| 亚洲欧美日韩在线| 不卡一卡二卡三乱码免费网站| 日韩精品一区国产麻豆| 午夜激情一区二区| 欧美性猛交xxxxxxxx| 自拍偷拍欧美精品| 丁香桃色午夜亚洲一区二区三区| 精品剧情在线观看| 免费看精品久久片| 这里只有精品免费| 亚洲成年人影院| 精品视频999| 亚洲综合在线观看视频| 96av麻豆蜜桃一区二区| 中文字幕日韩欧美一区二区三区| 国产又粗又猛又爽又黄91精品| 欧美成人三级在线| 九九国产精品视频| 日韩午夜av一区| 日本网站在线观看一区二区三区| 欧美四级电影在线观看| 亚洲在线视频网站| 91久久久免费一区二区| 一区二区三区日韩欧美精品| 色一情一伦一子一伦一区| 一区二区欧美国产| 欧美亚洲综合另类| 日韩高清不卡在线| 日韩午夜精品视频| 国产成人综合视频| 国产精品视频线看| 99久久精品国产导航| 一区二区三区在线影院| 在线观看日韩一区| 亚瑟在线精品视频| 日韩亚洲欧美一区二区三区| 国产在线日韩欧美| 欧美极品aⅴ影院| 色哟哟一区二区在线观看| 亚洲国产视频在线| 欧美一区二区福利视频| 黄色小说综合网站| 国产精品成人在线观看| 欧洲一区二区av| 免费国产亚洲视频| 国产午夜精品在线观看| 91亚洲精品久久久蜜桃| 亚洲国产欧美一区二区三区丁香婷| 欧美色爱综合网| 久久99精品久久只有精品| 中文字幕乱码亚洲精品一区| 94色蜜桃网一区二区三区| 午夜不卡在线视频| 久久久青草青青国产亚洲免观| 99r精品视频| 日韩专区在线视频| 久久久美女毛片| 一本久久a久久精品亚洲| 日本欧美韩国一区三区| 国产女人18水真多18精品一级做| 99热精品一区二区| 视频一区二区三区在线| 国产性做久久久久久| 欧美性猛交xxxx黑人交| 国产在线国偷精品产拍免费yy| 亚洲人亚洲人成电影网站色| 51精品国自产在线| 丁香五精品蜜臀久久久久99网站| 亚洲国产一二三| 国产日本欧美一区二区| 欧美日韩卡一卡二| 粉嫩一区二区三区在线看| 亚洲www啪成人一区二区麻豆| 国产亚洲一区二区在线观看| 欧美主播一区二区三区美女| 激情国产一区二区| 亚洲国产精品影院| 欧美激情一区三区| 欧美一区二区三区四区五区| 成人sese在线| 久久不见久久见中文字幕免费| 亚洲欧美日韩国产另类专区| 精品久久久久久久久久久久久久久 | 风间由美性色一区二区三区| 亚洲电影在线播放| 国产精品美女久久久久久久久| 91精品国产综合久久久久久久久久| www.久久久久久久久| 久久国产精品免费| 亚洲综合在线观看视频| 国产三级欧美三级日产三级99 | 国产亚洲自拍一区| 91麻豆精品国产91久久久久久| 99久久精品免费精品国产|