Welcome to the most active Linux Forum on the web.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
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.


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

Rep: Reputation: 0
upload files on ftp

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
Old 12-13-2006, 10:00 PM   #2
Senior Member
Registered: Oct 2003
Location: UK
Distribution: Kubuntu 12.10 (using awesome wm though)
Posts: 3,530

Rep: Reputation: 62
Old 12-14-2006, 07:16 AM   #3
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)
@echo off
ftp -i -s:access.txt

cd dir
mget *.doc
mput *.pdf

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


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
Trackbacks are Off
Pingbacks are On
Refbacks are 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 06:59 PM
IglooFTP-PRO refuses to upload files in folder when I upload folder eBopBob Linux - Software 0 08-27-2004 05:52 AM
how to make that ftp user could upload files, but not to delete! spotass Linux - Newbie 4 06-12-2004 06:11 PM
Connection, login and upload files to ftp server via shell script Paulo Ges Linux - Networking 2 02-21-2004 01:01 PM
ftp upload hotrodowner Linux - Networking 20 10-11-2002 04:23 PM

All times are GMT -5. The time now is 05:08 AM.

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