Computing.Net > Forums > Disk Operating System > FTP batch file

FTP batch file

Reply to Message Icon

Original Message
Name: Matt
Date: November 7, 2000 at 11:29:51 Pacific
Subject: FTP batch file
Comment:

Can anyone tell me how to make an ftp batch file that automatically puts in the user and the password?

the ftp server is a sco unix box

Thanks in advance!
Matt


Report Offensive Message For Removal


Response Number 1
Name: Laurence
Date: November 7, 2000 at 11:59:57 Pacific
Subject: FTP batch file
Reply: (edit)




Batfiles: The DOS batch file programming handbook


I've seen this discussed before in news:alt.msdos.batch
If you don't get an answer here, you might ask there.


Report Offensive Follow Up For Removal

Response Number 2
Name: Rigel
Date: November 8, 2000 at 05:24:02 Pacific
Subject: FTP batch file
Reply: (edit)

echo all the responses in advance to a text file, then pipe the text file into the ftp command, then delete the text file.


Report Offensive Follow Up For Removal

Response Number 3
Name: cepade
Date: November 21, 2000 at 08:19:50 Pacific
Subject: FTP batch file
Reply: (edit)

make a batchfile with a line
FTP -n -s:\Directory\TRANS.SRC [IP-Adress]

The trans.src file looks as followed:
user [username] [passwd]
lcd \Directory
cd /directory1
ascii
put file1 file1
get filenew filenew
close
bye


Report Offensive Follow Up For Removal







Use following form to reply to current message:

   Name: From My Computing.Net Settings
 E-Mail: From My Computing.Net Settings

Subject: FTP batch file

Comments:

 


  Homepage URL (*): 
Homepage Title (*): 
         Image URL: 
 
Data Recovery Software




How often do you use Computing.Net?

Every Day
Once a Week
Once a Month
This Is My First Time!


View Results

Poll Finishes In 3 Days.
Discuss in The Lounge