?? vbftp.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 + -