LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
Search this Thread
Old 12-13-2006, 03:18 AM   #1
zafar466
LQ Newbie
 
Registered: Oct 2006
Posts: 14

Rep: Reputation: 0
upload files on ftp


Hello,,
I want script which upload files from windows on ftp server.script must be in Dos i mean in .bat or any windows language.but preferably in Dos.its urgent
regards
zafar
 
Old 12-13-2006, 11:00 PM   #2
matthewg42
Senior Member
 
Registered: Oct 2003
Location: UK
Distribution: Kubuntu 12.10 (using awesome wm though)
Posts: 3,530

Rep: Reputation: 63
http://www.ericphelps.com/batch/samples/ftp.script.txt
 
Old 12-14-2006, 08:16 AM   #3
sn68
Member
 
Registered: Oct 2005
Distribution: FC5
Posts: 338

Rep: Reputation: 30
create two files ftp_access.bat & access.txt as follows to do what you want

( I tried putting commands in batch file preceeded by echo and piping them into script file with ">>" but the code is getting struck in password authentication, the following worked so didn't have patience to debug)
ftp_access.bat
---------------------
@echo off
ftp -i -s:access.txt myftp.server.com
exit

access.txt
---------------
username
password
cd dir
mget *.doc
mput *.pdf
.
.
.
quit

Last edited by sn68; 12-14-2006 at 08:30 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Upload files to newly setup server via FTP Madone_SL_5.5 Linux - Newbie 4 10-27-2006 07:59 PM
IglooFTP-PRO refuses to upload files in folder when I upload folder eBopBob Linux - Software 0 08-27-2004 06:52 AM
how to make that ftp user could upload files, but not to delete! spotass Linux - Newbie 4 06-12-2004 07:11 PM
Connection, login and upload files to ftp server via shell script Paulo Ges Linux - Networking 2 02-21-2004 02:01 PM
ftp upload hotrodowner Linux - Networking 20 10-11-2002 05:23 PM


All times are GMT -5. The time now is 05:03 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration