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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? 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, "=")

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
91精品国产入口在线| 成人免费视频播放| 在线播放欧美女士性生活| 亚洲第四色夜色| 欧美色网一区二区| 日韩精品电影在线| 久久亚洲精品小早川怜子| 国产成人精品www牛牛影视| 国产日韩欧美在线一区| 99综合电影在线视频| 一区二区三区中文免费| 56国语精品自产拍在线观看| 色综合视频在线观看| 日韩三级中文字幕| 国产不卡在线播放| 国产精品久久久久aaaa樱花| 在线精品视频免费播放| 青青国产91久久久久久| 精品国产露脸精彩对白| 成人av集中营| 天天色 色综合| 久久精品人人做人人综合| 99国产精品久久| 日韩激情中文字幕| 国产欧美视频一区二区三区| 色婷婷av久久久久久久| 肉丝袜脚交视频一区二区| 精品不卡在线视频| 色av成人天堂桃色av| 久久精品国产一区二区| 国产精品久久网站| 日韩小视频在线观看专区| 成人国产精品视频| 天天综合网 天天综合色| 国产蜜臀av在线一区二区三区 | 亚洲一区二区三区视频在线播放| 91精品国产免费久久综合| 国产米奇在线777精品观看| 伊人一区二区三区| 久久精品在线免费观看| 91国偷自产一区二区开放时间| 久久成人精品无人区| 亚洲精品精品亚洲| 久久嫩草精品久久久精品一| 欧美日韩一级大片网址| 国产一区二区伦理| 午夜av区久久| 亚洲欧美视频在线观看| 国产欧美日韩激情| 欧美一级在线视频| 欧美性大战久久久久久久| 国产a级毛片一区| 麻豆成人免费电影| 亚洲综合色婷婷| 国产精品美女久久久久久久久| 日韩一级大片在线观看| 欧美色综合天天久久综合精品| 丰满白嫩尤物一区二区| 国产剧情在线观看一区二区 | 99久久精品情趣| 日韩精品色哟哟| 一区二区三区中文字幕电影| 国产精品拍天天在线| 精品国产乱码久久久久久久| 欧美男女性生活在线直播观看| 99久久精品国产一区二区三区| 国产999精品久久久久久| 国产美女在线精品| 国产在线不卡一区| 国产永久精品大片wwwapp| 韩国在线一区二区| 精品一区二区三区欧美| 喷水一区二区三区| 免费不卡在线视频| 美女一区二区久久| 激情久久久久久久久久久久久久久久 | 久久精品国产秦先生| 麻豆免费精品视频| 男女男精品视频| 欧美aⅴ一区二区三区视频| 免费精品视频在线| 久久国产生活片100| 久久成人久久鬼色| 国内外成人在线| 国产不卡高清在线观看视频| 成人午夜免费电影| 色呦呦一区二区三区| 在线观看日韩电影| 91精品国产免费久久综合| 欧美一区二区黄色| 26uuu精品一区二区在线观看| 久久久久国产精品免费免费搜索| 日本一区二区三区免费乱视频| 国产精品免费视频网站| 一区二区三区四区蜜桃| 天天综合网 天天综合色| 久久国产综合精品| 91精品一区二区三区在线观看| 欧美撒尿777hd撒尿| 欧美精品一卡二卡| 久久亚洲综合色一区二区三区| 亚洲国产精品黑人久久久| 亚洲女人的天堂| 日本亚洲视频在线| 国产精品资源网| 日本韩国欧美国产| 日韩精品一区二区三区三区免费| 国产欧美综合色| 亚洲自拍偷拍麻豆| 精品一区二区三区在线观看| 顶级嫩模精品视频在线看| 91福利精品视频| 久久综合999| 亚洲自拍偷拍麻豆| 国产久卡久卡久卡久卡视频精品| 色综合天天做天天爱| 欧美一级黄色大片| 亚洲欧洲日韩女同| 日韩激情一二三区| 成人av电影在线观看| 欧美另类变人与禽xxxxx| 国产日韩亚洲欧美综合| 亚洲成a人片综合在线| 国产99一区视频免费| 精品视频一区 二区 三区| 国产无一区二区| 婷婷成人综合网| 91毛片在线观看| 久久综合九色综合97婷婷女人| 一区二区三区加勒比av| 国产大陆a不卡| 欧美日韩久久久久久| 国产精品三级av| 精品亚洲免费视频| 欧美视频在线不卡| 国产精品久久久爽爽爽麻豆色哟哟| 五月天网站亚洲| 色综合天天综合网天天狠天天| 精品美女被调教视频大全网站| 亚洲国产欧美日韩另类综合| 大白屁股一区二区视频| 欧美mv和日韩mv的网站| 丝袜美腿一区二区三区| 97se亚洲国产综合在线| 国产精品网曝门| 久久疯狂做爰流白浆xx| 在线播放日韩导航| 亚洲精品第一国产综合野| 粉嫩欧美一区二区三区高清影视| 欧美成人r级一区二区三区| 亚洲国产aⅴ天堂久久| 91麻豆高清视频| 日本一二三四高清不卡| 九一九一国产精品| 日韩亚洲国产中文字幕欧美| 五月天一区二区| 欧美日韩精品一区二区三区 | 91麻豆精品在线观看| 国产精品日韩成人| 国产91露脸合集magnet| 欧美精品一区二区在线观看| 日本女优在线视频一区二区| 欧美日韩视频在线一区二区| 亚洲二区在线观看| 色哟哟在线观看一区二区三区| 中文字幕欧美一区| 99视频一区二区三区| 欧美国产精品一区二区三区| 国产一区二区不卡| 国产日产欧产精品推荐色| 高清不卡一区二区| 国产精品天天看| 成人黄色777网| 一区二区三区在线视频播放| 欧美偷拍一区二区| 日日摸夜夜添夜夜添亚洲女人| 欧美精品在欧美一区二区少妇 | 日韩av在线免费观看不卡| 91超碰这里只有精品国产| 日本va欧美va欧美va精品| 日韩一区二区不卡| 韩国欧美一区二区| 国产午夜亚洲精品午夜鲁丝片| 国产成人三级在线观看| 国产精品国产三级国产aⅴ中文| 91免费版在线看| 午夜精品久久久| 精品成人a区在线观看| 成人午夜激情在线| 亚洲欧洲综合另类在线| 精品视频在线看| 国产精品一区在线观看你懂的| 欧美国产精品中文字幕| 欧美影视一区在线| 玖玖九九国产精品| 中文字幕一区二区三区在线观看| 欧洲av在线精品| 久久91精品国产91久久小草 | 亚洲精品国产品国语在线app| 欧美精品久久99|