Computing.Net > Forums > Disk Operating System > FTP dos to unix

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

FTP dos to unix

Reply to Message Icon

Name: indika_cha
Date: November 29, 2005 at 00:13:26 Pacific
OS: windows xp
CPU/Ram: cyrex pro 96Mb
Comment:

Dear friends,
If possible pls help me in this case.
i want to put a file to a remote computer using ftp. local machine is windowsXP. remote machine on UNIX. i tried to do it with dos batch file. didnt sucess. to log to unix machine i want to pass "user ID" and "password".then "put" my file there.
my batch file:
----------
ftp %1
root
%2
cd /usr
mput %3
bye
--------



Sponsored Link
Ads by Google

Response Number 1
Name: Mechanix2Go
Date: November 29, 2005 at 00:51:26 Pacific
Reply:

Try this:

:: mputter.bat
@echo off

if %3'==' echo which file? && goto :eof

> ftp.do echo o %1
>> ftp.do echo root
>> ftp.do echo %2
>> ftp.do echo bin
>> ftp.do echo cd /usr
>> ftp.do echo mput %3
>> ftp.do echo bye

ftp -s:ftp.do
:: DONE



If at first you don't succeed, you're about average.

M2


0

Response Number 2
Name: Mechanix2Go
Date: November 29, 2005 at 01:28:35 Pacific
Reply:

Well...

Not quite.

The mput will require confirmation of each put. No obvious way around it. So:

:: putter.bat
@echo off

if %3'==' echo which file? && goto :eof

> ftp.do echo o %1
>> ftp.do echo root
>> ftp.do echo %2
>> ftp.do echo bin
>> ftp.do echo cd /usr
>> ftp.do echo put %3
>> ftp.do echo bye

ftp -s:ftp.do
:: DONE



If at first you don't succeed, you're about average.

M2


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Disk Operating System Forum Home


Sponsored links

Ads by Google


Results for: FTP dos to unix

Comparision between DOS and Unix www.computing.net/answers/dos/comparision-between-dos-and-unix/3950.html

Need help in DOS ftp www.computing.net/answers/dos/need-help-in-dos-ftp-/2085.html

difference between ms-dos and unix www.computing.net/answers/dos/difference-between-msdos-and-unix/7456.html