I am experimenting with running ftp from a command prompt on a Windows Server 2008 R2 platform. I have code in a vbscript file that uses a vendor product to ftp a file. I should just be able to shell out and run the "native" ftp command to put the file to the destination ftp site and eliminate the need for the 3rd party software. Here is my code:
I have just begun researching this and I wrote a script but I get invalid command even though it's the same commands in the script that I just entered one-by-one into an OS shell window. Does anyone have a script they know works that they could share, or know of a way to debug what my invalid command might be?Code:Dim oMySite Set oMySite = CreateObject("CuteFTPPro.TEConnection") oMySite.Protocol = "FTP" oMySite.Host = "xx.xx.xx.xx" oMySite.Login = "id" oMySite.Password = "pw" oMySite.Connect oMySite.RemoteFolder = "/remotefolder/mmock" oMySite.LocalFolder = sTempPath & "\" oMySite.Upload "file_to_put.txt" oMySite.Disconnect oMySite.Close
Thanks.




Reply With Quote