programmatic FTP

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Scotter

    programmatic FTP

    Hi all -

    Do any of you know of a tool that you can reference from ASP vbScript to FTP
    a file sitting on the server to another server somewhere that has an open
    FTP port?

    DETAIL:
    I have a content management system I wrote that runs only on a Windows box.
    New client must stay with his host who only runs Linux boxes.
    I want to modify my engine so that when he is on the admin side and saves
    changes to a page, an HTML page is generated and FTP'd over to that Linux
    server.

    Ideas?

    --
    Scotter


  • Ray Costanzo [MVP]

    #2
    Re: programmatic FTP

    This would be a bit flakey, and I'd suggest you not try to do this, but
    well, I guess you'll have to do what you have to do.

    You can "shell out" to ftp.exe and pass it some data to automate an FTP
    process. You'd want to create an ftp "instructio n" file, and then pass that
    file to ftp.exe as so. (This assumes your instruction file exists. If you
    need to create it on the fly, use the File System Object to create a file
    first.)


    C:\ftpcommand.f tp

    open 123.123.123.123
    user REPLACETHISWITH YOURUSERNAME
    REPLACETHISWITH YOURPASSWORD
    lcd D:\LocalDirOnYo urServer
    cd RemoteDirectory OnServer
    type ascii
    put asciifile.htm
    type binary
    put binaryfile.gif
    close
    quit

    Then execute this code:

    Set oShell = CreateObject("W Script.Shell")
    oShell.Run "%windir%\syste m32\ftp.exe -n -s:C:\ftpcommand .ftp", 0, False
    Set oShell = Nothing

    Ray at work


    "Scotter" <spam@spam.co m> wrote in message
    news:rUkZc.2481 $Xi.1293@fe1.te xas.rr.com...[color=blue]
    > Hi all -
    >
    > Do any of you know of a tool that you can reference from ASP vbScript to
    > FTP
    > a file sitting on the server to another server somewhere that has an open
    > FTP port?
    >
    > DETAIL:
    > I have a content management system I wrote that runs only on a Windows
    > box.
    > New client must stay with his host who only runs Linux boxes.
    > I want to modify my engine so that when he is on the admin side and saves
    > changes to a page, an HTML page is generated and FTP'd over to that Linux
    > server.
    >
    > Ideas?
    >
    > --
    > Scotter
    >
    >[/color]


    Comment

    • Curt_C [MVP]

      #3
      Re: programmatic FTP

      check over at www.aspin.com, there might be an FTP component for the server
      you can use.

      --
      Curt Christianson
      Owner/Lead Developer, DF-Software
      Site: http://www.Darkfalz.com
      Blog: http://blog.Darkfalz.com


      "Scotter" <spam@spam.co m> wrote in message
      news:rUkZc.2481 $Xi.1293@fe1.te xas.rr.com...[color=blue]
      > Hi all -
      >
      > Do any of you know of a tool that you can reference from ASP vbScript to
      > FTP
      > a file sitting on the server to another server somewhere that has an open
      > FTP port?
      >
      > DETAIL:
      > I have a content management system I wrote that runs only on a Windows
      > box.
      > New client must stay with his host who only runs Linux boxes.
      > I want to modify my engine so that when he is on the admin side and saves
      > changes to a page, an HTML page is generated and FTP'd over to that Linux
      > server.
      >
      > Ideas?
      >
      > --
      > Scotter
      >
      >[/color]


      Comment

      • Mike Drewery

        #4
        programmatic FTP



        I use ASPInet and have been very pleased.

        Mike

        [color=blue]
        >-----Original Message-----
        >Hi all -
        >
        >Do any of you know of a tool that you can reference from[/color]
        ASP vbScript to FTP[color=blue]
        >a file sitting on the server to another server somewhere[/color]
        that has an open[color=blue]
        >FTP port?
        >
        >DETAIL:
        >I have a content management system I wrote that runs only[/color]
        on a Windows box.[color=blue]
        >New client must stay with his host who only runs Linux[/color]
        boxes.[color=blue]
        >I want to modify my engine so that when he is on the[/color]
        admin side and saves[color=blue]
        >changes to a page, an HTML page is generated and FTP'd[/color]
        over to that Linux[color=blue]
        >server.
        >
        >Ideas?
        >
        >--
        >Scotter
        >
        >
        >.
        >[/color]

        Comment

        • Yan-Hong Huang[MSFT]

          #5
          RE: programmatic FTP

          Hello Scotter,

          Do you have any more concerns on the community's reply? If there is any
          unclear, please feel free to post here. Thanks very much.

          Best regards,
          Yanhong Huang
          Microsoft Community Support

          Get Secure! ¨C www.microsoft.com/security
          Register to Access MSDN Managed Newsgroups!
          -http://support.microso ft.com/default.aspx?sc id=/servicedesks/msdn/nospam.as
          p&SD=msdn

          This posting is provided "AS IS" with no warranties, and confers no rights.

          Comment

          Working...