VBS transfer using CoreFTP

Core FTP client questions and answers
Post Reply
slam69
Posts: 1
Joined: Tue Aug 08, 2006 2:41 pm

VBS transfer using CoreFTP

Post by slam69 »

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
shyler
Posts: 3
Joined: Wed May 05, 2010 7:31 pm

Post by shyler »

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
Post Reply