Angela,

Remove the []'s from your port number, and it should work (it does
for me, from Win98...  you didn't say what operating system, but
I figured it had to be some variant of windows if you're using a
.BAT file)

I use it for port 8021 all the time.

I use a batch file called "asput.bat" which I use from the command
line to stick things onto my AS/400 through an FTP proxy that's located
on port 8021.  It looks like this:

@echo off
echo open 192.168.3.77 8021 > %temp%\asput.fts
echo klemscot >> %temp%\asput.fts
echo password >> %temp%\asput.fts
echo quote site namefmt 1 >> %temp%\asput.fts
echo binary >> %temp%\asput.fts
echo put %1 %2 >> %temp%\asput.fts
echo quit >> %temp%\asput.fts
ftp -s:%temp%\asput.fts
del %temp%\asput.fts

then I run it like so:

asput C:\leopard.jpg /qopensys/testsck/leopard.jpg


On Thu, 10 Jan 2002, Angela Wawrzaszek wrote:

>      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
>



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

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

This mailing list archive is Copyright 1997-2022 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.