Funny I am having similar problems with running the following code. However the only difference is I’m trying to use cmd.exe to execute a txt file in order to ftp some files. Here is my code:
Set objShell = Server.CreateObject("WScript.Shell")
objShell.Run("ftp.exe...
then execute it by using: Server.CreateObject("WScript.Shell")
Here is my example:
strSourcePath = "\\webserver\wwwroot$\images\PDF"
Set fso = CreateObject("Scripting.FileSystemObject")
Set objTxtFile = fso.CreateTextFile (Server.MapPath("\gripanet\uploadtxtfile\ftpsend.txt"))
' Write the...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.