DBAsupport.com Forums - Powered by vBulletin
Results 1 to 3 of 3

Thread: NT .bat Script to ftp file to Unix machine

  1. #1
    Join Date
    Oct 2000
    Posts
    76
    Anyone can tell me how to write a simple script in DOS .bat or .cmd file to achive this task: get a file from a location on NT server, then ftp it to a unix machine? I don't know how to write DOS scripts. Please help. Thanks!
    J.T.

  2. #2
    Join Date
    Mar 2001
    Posts
    12

    Arrow ftp command in batch mode

    You can write ftp command in a text file like my.ftp include following:

    verbose
    open your-nt-host-name
    user your-login-name your-password
    ascii
    cd file-directory
    get file-name
    close
    open your-unix-host-name
    user your-login-name your-password
    ascii
    cd destination-directory
    put file-name
    bye

    then you can create a bat file include:

    ftp -n -s:my.ftp

    [Edited by tangqiang on 03-21-2001 at 01:34 AM]

  3. #3
    Join Date
    Oct 2000
    Posts
    76
    Thanks! It works.
    J.T.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Click Here to Expand Forum to Full Width