I'm try to make this a wild card download from the NAI FTP site, FTP Batch scripting is an alternative, but i have started this (with reference help) and would like to see it finished.
Any ideas?
The only way it presently works is if i specify a particular file name on 'strDest' and 'strSourceFile'
This is no good for changing contents, by the time a new file name is added to the script each time you might as well have manually downloaded it.
------------------------------------------------
'variables
Dim objFTP
Dim strDest, strSource, strSourceFile
'filename and path properties
strDest="C:\ftp\*.*"
strSource="pub\antivirus\datfiles\4.x\"
strSourceFile="*.*"
'object properties
Set objFTP=CreateObject("Mabry.FTPXObj")
objFTP.Blocking=True
objFTP.Host="ftp.nai.com"
objFTP.LogonName="anonymous"
objFTP.LogonPassword="pass"
objFTP.SrcFilename=strSourceFile
objFTP.DstFilename=strDest
objFTP.Directory=strSource
'execute
objFTP.Connect
objFTP.ChangeDir
objFTP.GetFile
objFTP.Disconnect
Set objFTP=Nothing
Wscript.Quit
----------------------------------------
Cheers
Gurner
What is Divine Paradox?
Any ideas?
The only way it presently works is if i specify a particular file name on 'strDest' and 'strSourceFile'
This is no good for changing contents, by the time a new file name is added to the script each time you might as well have manually downloaded it.
------------------------------------------------
'variables
Dim objFTP
Dim strDest, strSource, strSourceFile
'filename and path properties
strDest="C:\ftp\*.*"
strSource="pub\antivirus\datfiles\4.x\"
strSourceFile="*.*"
'object properties
Set objFTP=CreateObject("Mabry.FTPXObj")
objFTP.Blocking=True
objFTP.Host="ftp.nai.com"
objFTP.LogonName="anonymous"
objFTP.LogonPassword="pass"
objFTP.SrcFilename=strSourceFile
objFTP.DstFilename=strDest
objFTP.Directory=strSource
'execute
objFTP.Connect
objFTP.ChangeDir
objFTP.GetFile
objFTP.Disconnect
Set objFTP=Nothing
Wscript.Quit
----------------------------------------
Cheers
Gurner
What is Divine Paradox?