Announcement

Collapse
No announcement yet.

transfert to ftp server

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • transfert to ftp server

    hello
    i've got a 2003 server and ftp service on it.
    i would like to copy a full folder to the ftp server automaticaly with a batch file and command ftp file
    how to do this script without user assistance?
    thank's

  • #2
    I think you need to find some party tool to use in dos command.
    FTP command from windows does not allow you to copy folders only multiple files.
    YOu need the folder right?
    You can just read the folder name, create the folder on the local machine then copy all the contents from that folder to the local machine.
    This is a possible solution for you?
    MCSE w2k
    MCSA w2k - MCSA w2k MESSAGING
    MCDBA SQL2k

    Comment


    • #3
      Easy !!

      Create 2 Files.

      1st just a text file called ftp.txt (or whatever). Here just put your FTP commands that you would normally use in the DOS prompt. (change username and password for your real credentials).

      Code:
      open ftp.domain.com
      username
      password
      lcd c:\localfolder
      prompt n
      mput *.*
      quit
      2nd create a batch file with the following.

      Code:
      FTP -s:ftp.txt
      Job Done.

      topper
      * Shamelessly mentioning "Don't forget to add reputation!"

      Comment


      • #4
        Originally posted by topper
        Easy !!

        Create 2 Files.

        1st just a text file called ftp.txt (or whatever). Here just put your FTP commands that you would normally use in the DOS prompt. (change username and password for your real credentials).

        Code:
        open ftp.domain.com
        username
        password
        lcd c:\localfolder
        prompt n
        mput *.*
        quit
        2nd create a batch file with the following.

        Code:
        FTP -s:ftp.txt
        Job Done.

        topper

        I think milo974 want COPY not PASTE

        Your script are great butt you must change the mput *.* to mget *.*
        MCSE w2k
        MCSA w2k - MCSA w2k MESSAGING
        MCDBA SQL2k

        Comment


        • #5
          Originally posted by windux
          I think milo974 want COPY not PASTE

          Your script are great butt you must change the mput *.* to mget *.*
          What are you talking about ?

          Copy not Paste ??

          And he wants the script to upload to the FTP server (MPUT), not download from the FTP server (MGET).

          topper
          * Shamelessly mentioning "Don't forget to add reputation!"

          Comment


          • #6
            You're right...
            :P sorry
            MCSE w2k
            MCSA w2k - MCSA w2k MESSAGING
            MCDBA SQL2k

            Comment

            Working...
            X