Hi I am trying to use CoreFTP as my upload tool for automating a file transfer to my website which I have in the past used CUteftp for however I am unable to get it to create object and keep getting activex canot create object using line
Set MySite = CreateObject("coreftp.exe")
i understand this is probably due to needing to register a dll in registry but not sure which if anyone can help ill be eternally grateful!!!
justin
VBS transfer using CoreFTP
I realize this was posted ages ago, but in case anyone else is looking for a solution, I have used code similar to below for downloading. Have not tested for upload, but it should work. The code has everything run in the background.
csite = " -s -O -site yourSiteName -u "
opath = ftpDirectory\
pathf = localFolder\fileName
runpath = csite & pathf & " -p " & opath & " {ENTER}"
Set wShell = CreateObject("WScript.Shell")
wShell.Run "coreftp.exe" & runpath, 7, true
Set wShell = nothing
csite = " -s -O -site yourSiteName -u "
opath = ftpDirectory\
pathf = localFolder\fileName
runpath = csite & pathf & " -p " & opath & " {ENTER}"
Set wShell = CreateObject("WScript.Shell")
wShell.Run "coreftp.exe" & runpath, 7, true
Set wShell = nothing