⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 vbftp.txt

📁 simple vb ftp file tranfer project code
💻 TXT
字号:
#---------------------------------
#FTP upload/download as a batch file
#Comments are defined by character # in the line 1
#
#Commands are identified within [...] brackets followed by =
#
#For Get (from server) and Put (to server) you must separate 
#the source and destination files with a ; character
#
#Note that ftp does not overwrite a file which exists on
#the local server when you try to download it using Get.
#You have to delete the local file first.
#
#However, the PUT command does overwrite what is on the 
#remote server.
#
#If you wish to delete a single file from the remote directory 
#you can delete single files by [DELETEREMOTEFILE]
#
#If you wish to delete all files from a remote directory 
#you can use [DELETEDIRFILES]
#
#A special command has been created called [LOGFILE] which 
#downloads the last 7 days worth of logfiles even if they 
#have not changed.  It deletes the existing logs
#files from the local directory first.
#
#A special command has been created called [END] which 
#ends the program and is normally called at the end
#of using the command line version.  [END] does not work
#with non-command line version
#
#
#The program can be run from VB.  In this case it assumes
#that the text file is called vbftp.txt and is located in
#the same place as the executable.
#Or it can be run from the command line, in which case use 
#'vbftp.exe filename' where filename is the name of the 
#vbftp.txt file.  If no text file is entered,
#then it is assumed that the text file is called vbftp.txt
#and is located in the same place as the executable.


#GET a single file
[REQUESTTIMEOUT] = 60
[URL] = your_ftp_url
[PROTOCOL] = icFTP
[REMOTEPORT] = 21
[USERNAME] = your_username
[PASSWORD] = your_password
[GET] = /fredbloggs/webroot/robots.txt ; c:\temp\robots.txt
[CLOSE]
[END]


#DELETE a single file in a given remote directory
[REQUESTTIMEOUT] = 60
[URL] = your_ftp_url
[PROTOCOL] = icFTP
[REMOTEPORT] = 21
[USERNAME] = your_username
[PASSWORD] = your_password
[DELETEREMOTEFILE] = /fredbloggs/webroot/text/member.aspx
[CLOSE]
[END]


#DELETE all files from a given remote directory
[REQUESTTIMEOUT] = 60
[URL] = your_ftp_url
[PROTOCOL] = icFTP
[REMOTEPORT] = 21
[USERNAME] = your_username
[PASSWORD] = your_password
[DELETEDIRFILES] = /fredbloggs/webroot/test/
[CLOSE]
[END]


#PUT a single file
[REQUESTTIMEOUT] = 60
[URL] = your_ftp_url
[PROTOCOL] = icFTP
[REMOTEPORT] = 21
[USERNAME] = your_username
[PASSWORD] = your_password
[PUT] = C:\Temp\full\member.aspx ; /fredbloggs/webroot/test/member.aspx
[CLOSE]
[END]


#Work details : PUT a directory
[REQUESTTIMEOUT] = 60
[URL] = your_ftp_url
[PROTOCOL] = icFTP
[REMOTEPORT] = 21
[USERNAME] = your_username
[PASSWORD] = your_password
[PUTFILES] = C:\Temp\zip\ ; /fredbloggs/webroot/test/
[CLOSE]
[END]


#LOGFILE get latest logfiles
[REQUESTTIMEOUT] = 60
[URL] = your_ftp_url
[PROTOCOL] = icFTP
[REMOTEPORT] = 21
[USERNAME] = your_username
[PASSWORD] = your_password
[LOGFILE] = /iislogs/w3svc1/imc24/w3svc5/ ; c:\temp\test\
[CLOSE]
[END]


#GETDIRDIFFS command
[REQUESTTIMEOUT] = 60
[URL] = your_ftp_url
[PROTOCOL] = icFTP
[REMOTEPORT] = 21
[USERNAME] = your_username
[PASSWORD] = your_password
[GETDIRDIFFS] = /iislogs/w3svc1/imc24/w3svc5/ ; c:\temp\test\
[CLOSE]
[END]

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -