Hi,
I'm using the std script from PDF Creator to FTP upload files after PDF
printing.
The script uses the following function to upload.
However after installing IE 7, I get an error on the line "Set ftpo =
CreateObject("InetCtls.Inet.1")".
I have done some googleing, and found out that it because of IE 7.0. How can
I easy change the function so that it works?
Code:
Call FTPUpload(domain, rdir, user, pass, fname)
Private Sub FTPUpload(domain, rdir, user, pass, fname)
Dim fso, ftpo
Set fso = CreateObject("Scripting.FileSystemObject")
Set ftpo = CreateObject("InetCtls.Inet.1")
ftpo.URL = "ftp://" & domain
ftpo.UserName = user
ftpo.Password = pass
ftpo.Execute , "CD " & rdir
Do
WScript.Sleep 100
Loop while ftpo.StillExecuting
ftpo.Execute , "Put """ & fname & """ """ & fso.GetFilename(fname) & """"
Do
WScript.Sleep 100
Loop while ftpo.StillExecuting
ftpo.Execute , "Close"
End Sub
Best regards
Mads