Results 1 to 5 of 5

Thread: Ftp Batch program

  1. #1
    Join Date
    Jan 2009
    Posts
    65

    Ftp Batch program

    I need a batch file that I copy the entire contents of a folder and the ftp
    I tried to write it well but I do not work:

    ftp-s: datiftp.txt ftp.XXX.com

    and the file datiftp.txt like this:

    username
    password
    send "C: \ Users \% USERNAME% \ My Documents \ Work 2009 \ *.*"
    quit

    but I do not send anything. Where did I go wrong? Is there a difference between uppercase lowercase? % USERNAME% should send the name in use so I can use it in another pc?

    Thank you!

  2. #2
    Join Date
    Dec 2008
    Posts
    322

    Re: Batch program

    Try the instructions you put in the file directly from the ftp client.
    To send multiple files using mput

  3. #3
    Join Date
    Jan 2009
    Posts
    65

    Re: Ftp Batch program

    ftp works and the data is correct because it worked when I went to a file only uppare but now he can upparmi the contents of a folder I do not work.
    I should then use "mput" and should instead of "send"?

    username
    password
    mput "C: \ Users \% USERNAME% \ My Documents \ Work 2009 \ *.*"
    quit

    thanks

  4. #4
    Join Date
    Feb 2008
    Posts
    2,635

    Re: Ftp Batch program

    Batch without proof, but with the simple ftp client to see if it works and then put the commands in the text file.

  5. #5
    Join Date
    Aug 2007
    Posts
    1,098

    Re: Ftp Batch program


Similar Threads

  1. Learning Batch file to open a program or a file
    By Ikshana in forum Windows Software
    Replies: 3
    Last Post: 04-04-2011, 07:24 PM
  2. Windows batch file: set output of program to a variable?
    By supernoob in forum Windows Software
    Replies: 5
    Last Post: 17-10-2010, 05:58 AM
  3. Closing a Program With BASIC/Batch
    By zaid in forum Operating Systems
    Replies: 3
    Last Post: 03-08-2009, 09:58 AM
  4. Running a program/batch as a service
    By jean-paul martell in forum Operating Systems
    Replies: 4
    Last Post: 08-04-2009, 10:58 AM
  5. BII announces Admission Notice for next Batch of "Advance Program in Clinical Trials"
    By Career-Minded in forum Education Career and Job Discussions
    Replies: 3
    Last Post: 30-09-2008, 07:51 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,717,332,888.54062 seconds with 17 queries