locked
FTP publish associated to a WDP ? RRS feed

  • Question

  • User-1859992688 posted

    I have setup a WDP; and now I would like to publish the output of the WDP through FTP in a scriptable manner. Does anyone knows how to do that?

    Best regards,
    Joannès
    lokad.com demand forecasting
     

    Tuesday, September 18, 2007 3:28 AM

Answers

  • User-2017008401 posted

    Hi Joannès,

    Based on my understanding, you have created the Web Deployment project output. Now you want to know how to use script to upload the output to Server via FTP protocol. If I have misunderstood your concern, please let me know.

    For this scenario, we can use the ftp command to upload the web site. For example:

        1. First connect to the Remote Server. (ftp www.somename.com)
        2. Then use “mput” switch to upload multiple files. (ftp> mput *.aspx)
        3. Repeat uploading other files.

    For the detailed information, please refer to the following link:

    Using command line FTP to upload to a web site
    http://www.techscribe.co.uk/ta/using_ftp.htm

     

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Thursday, September 20, 2007 2:42 AM
  • User-1859992688 posted

    Hi Benson,

    Thanks for the tips, you've correctly guessed our situation and our needs.

    Actually, we have a lot of directories; the script generation is going quite a complex task. Also, we need to clean-up first the target FTP directory.

    I have been in contact with "MsBuild Community Tasks" team recently; and it seems that they are planning a FtpMassUpdate task that would basically solve this issue.

    Best regards,
    Joannès

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Thursday, September 20, 2007 4:00 AM

All replies

  • User-2017008401 posted

    Hi Joannès,

    Based on my understanding, you have created the Web Deployment project output. Now you want to know how to use script to upload the output to Server via FTP protocol. If I have misunderstood your concern, please let me know.

    For this scenario, we can use the ftp command to upload the web site. For example:

        1. First connect to the Remote Server. (ftp www.somename.com)
        2. Then use “mput” switch to upload multiple files. (ftp> mput *.aspx)
        3. Repeat uploading other files.

    For the detailed information, please refer to the following link:

    Using command line FTP to upload to a web site
    http://www.techscribe.co.uk/ta/using_ftp.htm

     

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Thursday, September 20, 2007 2:42 AM
  • User-1859992688 posted

    Hi Benson,

    Thanks for the tips, you've correctly guessed our situation and our needs.

    Actually, we have a lot of directories; the script generation is going quite a complex task. Also, we need to clean-up first the target FTP directory.

    I have been in contact with "MsBuild Community Tasks" team recently; and it seems that they are planning a FtpMassUpdate task that would basically solve this issue.

    Best regards,
    Joannès

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Thursday, September 20, 2007 4:00 AM