Exactly.  This is why I referred her to our FAQ.

Rob Berendt
--
"They that can give up essential liberty to obtain a little temporary
safety deserve neither liberty nor safety."
Benjamin Franklin



                    "Carl Galgano"
                    <cgalgano2@ediconsu       To:     <midrange-l@midrange.com>
                    lting.com>                cc:
                    Sent by:                  Fax to:
                    midrange-l-admin@mi       Subject:     RE: FTP to a port 
number on a computer
                    drange.com


                    01/11/2002 11:13 AM
                    Please respond to
                    midrange-l






Angela:
There are usually 2 ports involved for the FTP server.  As suggested here
already, you need to have the FTP server "listening" on a specific port.
In
FTP, one port is used for the control session and the other for the data
transfer.  I think by default ports 21/20 are used for standards FTP.

Also, you mention this is a .bat file.  That confuses me.  In order for FTP
from a PC in a batch type mode, I have always keyed my FTP script into a
file, and then written a small .bat file that uses the Windows FTP
client.... you initiate it by issuing the following DOS command

ftp -s:filename (the filename contains your FTP script)

cjg


Carl J. Galgano
EDI Consulting Services, Inc.
550 Kennesaw Avenue, Suite 800
Marietta, GA  30060
(770) 422-2995 - voice
(419) 730-8212 - fax
mailto:cgalgano@ediconsulting.com
http://www.ediconsulting.com
AS400 EDI, Networking, E-Commerce and Communications Consulting and
Implementation
http://www.icecreamovernight.com
Premium Ice Cream Brands shipped Overnight
FREE AS/400 Timesharing Service -
http://www.ediconsulting.com/timeshare.html
"You ain't gonna learn what you don't want to know" - rw

-----Original Message-----
From: midrange-l-admin@midrange.com
[mailto:midrange-l-admin@midrange.com]On Behalf Of Angela Wawrzaszek
Sent: Thursday, January 10, 2002 2:48 PM
To: Midrange Mail List (E-mail)
Subject: FTP to a port number on a computer


     My ultimate goal is to be able from an outside source FTP to a server
at our business.  We have several companies and we would like them to all
send there files to a specific folder.  This process should be able to be
automated.    I created a bat program that would FTP to an IP ( the IP
specified is internal, once I get that working I will try to use do this
with the external IP from home.)    The default port for TCP/IP is 21,  I
would like to go to port 20.

Here is my bat pgm.

open 192.168.0.245 [20]
user
password
put \\root\home\file.txt newfile.txt
quit


It gives me an error of invalid port number.

If I remove the port number I can run this from DOS,  put it puts my file
to
the default port.  My .bat program will not run,  it tells me invalid
login.

I can do the FTP from an HTML address line.

Anyone know what I am doing wrong or another way to send a txt file to
another sever ( with the idea that to some it will not be an internal
server)

Thanks!!!

Angela Wawrzaszek
Nucor Steel Auburn INC.
Programmer/Analyst
(315) 258 4205
wawrzaszek@nucorauburn.com

_______________________________________________
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
To post a message email: MIDRANGE-L@midrange.com
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/cgi-bin/listinfo/midrange-l
or email: MIDRANGE-L-request@midrange.com
Before posting, please take a moment to review the archives
at http://archive.midrange.com/midrange-l.

_______________________________________________
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
To post a message email: MIDRANGE-L@midrange.com
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/cgi-bin/listinfo/midrange-l
or email: MIDRANGE-L-request@midrange.com
Before posting, please take a moment to review the archives
at http://archive.midrange.com/midrange-l.







As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.