FTP Problem on New PC

Discussion in 'Windows 7 Help and Support' started by Flupsie, Oct 6, 2011.

  1. Flupsie

    Flupsie Well-Known Member

    Joined:
    Jun 9, 2011
    Messages:
    109
    Likes Received:
    0
    [FONT=&quot]I have the following FTP code which works perfectly on my one PC at the office. I have just been given a new PC and when running the macro run time error 440 "unable to wait for process"

    [/FONT]
    [FONT=&quot]The following code is highlighted[/FONT]
    [FONT=&quot] [/FONT]
    wsh.Run FTPcommand, 5, True[FONT=&quot][/FONT]
    [FONT=&quot]
    I am using Office 2010 and Windows 7 on both PC's

    I suspect that it may have to do with a Windows setting of some sort.

    Your assistance in resolving the problem will be most appreciated


    Public Sub Ftp_Download_File()

    Dim FTPcommand As String
    Dim wsh As Object

    FTPcommand = "ftp -n -s:" & Chr(34) & "C:\FTP_commands2.txt" & Chr(34)
    Set wsh = CreateObject("WScript.Shell")
    wsh.Run FTPcommand, 5, True



    End Sub [/FONT]




    [FONT=&quot] [/FONT]
     
  2. Flupsie

    Flupsie Well-Known Member

    Joined:
    Jun 9, 2011
    Messages:
    109
    Likes Received:
    0
    Just to let the users know that i have resolved the problem. I went to the Control Panel, Internet Options and clicled on Security and set the Local Intranet to a low setting and it has now allowed me to download the file
     

Share This Page

Loading...