ftp in Windows command window

  • Thread starter Thread starter Howard - JC Publishing
  • Start date Start date
H

Howard - JC Publishing

Guest
I need to run ftp through the Windows CMD window. That works fine except I
need to change to PASV [passive] mode. How di I change to that setting?

Thank you.
 
Re: ftp in Windows command window

Howard - JC Publishing wrote:
> I need to run ftp through the Windows CMD window. That works fine except I
> need to change to PASV [passive] mode. How di I change to that setting?
>
> Thank you.
>

Windows ftp does not support passive. Type help at the > prompt if you
wish. But Ftp has never supported mode changes. That's why so many
other free ftp programs are available. ie. Filezilla.
I have found sftp from 'move it freely' that is replacement for the
ftp.exe from MS. sftp is a secure ftp but is has commands to change
passive and active modes.
http://www.ipswitchft.com/products/...uments_worldwide_moveit55release-moveitfreely
 
Re: ftp in Windows command window

Control Panel
Internet Options
Advanced
Use passive FTP (for firewall and DSL modem compatability)

~alan

"Howard - JC Publishing" <HowardJCPublishing@discussions.microsoft.com>
wrote in message news:DF9F64ED-C9DA-4C97-81B7-4C84B653B3F8@microsoft.com...
>I need to run ftp through the Windows CMD window. That works fine except I
> need to change to PASV [passive] mode. How di I change to that setting?
>
> Thank you.
>
 
Re: ftp in Windows command window

"~~Alan~~" <a.shepro@gmail.com> wrote:

>Control Panel
>Internet Options
>Advanced
>Use passive FTP (for firewall and DSL modem compatability)


Does that option affect the command-line FTP program or just Internet
Explorer?

--
Tim Slattery
MS MVP(Shell/User)
Slattery_T@bls.gov
http://members.cox.net/slatteryt
 
Re: ftp in Windows command window

I had a problem a while back using both IE and CMD. This corrected my
problem but I do not remember if it corrected it in both places. What have
you got to loose??

~alan


"Tim Slattery" <Slattery_T@bls.gov> wrote in message
news:evrnd45b3eb6jd358btmjc66aha530mv8l@4ax.com...
> "~~Alan~~" <a.shepro@gmail.com> wrote:
>
>>Control Panel
>>Internet Options
>>Advanced
>>Use passive FTP (for firewall and DSL modem compatability)

>
> Does that option affect the command-line FTP program or just Internet
> Explorer?
>
> --
> Tim Slattery
> MS MVP(Shell/User)
> Slattery_T@bls.gov
> http://members.cox.net/slatteryt
 
Re: ftp in Windows command window

"David H. Lipman" <DLipman~nospam~@Verizon.Net> wrote:

>From: "Howard - JC Publishing" <HowardJCPublishing@discussions.microsoft.com>
>
>| I need to run ftp through the Windows CMD window. That works fine except I
>| need to change to PASV [passive] mode. How di I change to that setting?
>
>| Thank you.
>
>
>FTP PUT or FTP GET ?


Shouldn't matter. If you're behind a NAT router neither command will
work in active mode. Neither will a directory listing, for that
matter.

--
Tim Slattery
MS MVP(Shell/User)
Slattery_T@bls.gov
http://members.cox.net/slatteryt
 
Re: ftp in Windows command window

"Tim Slattery" wrote:
> "David H. Lipman" wrote:
>
>> "Howard - JC Publishing" wrote:
>>
>>| I need to run ftp through the Windows CMD window.
>>| That works fine except I need to change to PASV
>>| [passive] mode. How di I change to that setting?
>>
>>
>>FTP PUT or FTP GET ?

>
> Shouldn't matter. If you're behind a NAT router neither
> command will work in active mode. Neither will a directory
> listing, for that matter.



I'd like to access a local web server (and to ftp files to it)
over the office LAN. But there will be a router in the way.
Can you recommend a way to get through it?

*TimDaniels*
 
Re: ftp in Windows command window

"Timothy Daniels" <NoSpam@SpamMeNot.com> wrote:

>"Tim Slattery" wrote:
>> "David H. Lipman" wrote:
>>
>>> "Howard - JC Publishing" wrote:
>>>
>>>| I need to run ftp through the Windows CMD window.
>>>| That works fine except I need to change to PASV
>>>| [passive] mode. How di I change to that setting?
>>>
>>>
>>>FTP PUT or FTP GET ?

>>
>> Shouldn't matter. If you're behind a NAT router neither
>> command will work in active mode. Neither will a directory
>> listing, for that matter.

>
>
> I'd like to access a local web server (and to ftp files to it)
>over the office LAN. But there will be a router in the way.
>Can you recommend a way to get through it?


Well, there's always a router in the way, you can't get anyplace
without one.

If the router is doing NAT (Network Address Translation), then you
need to run your FTP client in passive mode. The built-in command-line
FTP client won't do that, but there are quite a few GUI clients that
will. CuteFTP and WS-FTP come to mind, there are many others.

If the router is not doing NAT, then your client can run in active
mode. Just about any client will do that.

--
Tim Slattery
MS MVP(Shell/User)
Slattery_T@bls.gov
http://members.cox.net/slatteryt
 
Re: ftp in Windows command window

From: "Tim Slattery" <Slattery_T@bls.gov>

| "David H. Lipman" <DLipman~nospam~@Verizon.Net> wrote:

>>From: "Howard - JC Publishing" <HowardJCPublishing@discussions.microsoft.com>


>>| I need to run ftp through the Windows CMD window. That works fine except I
>>| need to change to PASV [passive] mode. How di I change to that setting?


>>| Thank you.



>>FTP PUT or FTP GET ?


| Shouldn't matter. If you're behind a NAT router neither command will
| work in active mode. Neither will a directory listing, for that
| matter.

Sure, if we replace the MS FTP client...

Example:

wget --tries=2 --timeout=15 --passive-ftp ftp://ftp.site/file


--
Dave
http://www.claymania.com/removal-trojan-adware.html
Multi-AV - http://www.pctipp.ch/downloads/dl/35905.asp
 
RE: ftp in Windows command window



"Howard - JC Publishing" wrote:

> I need to run ftp through the Windows CMD window. That works fine except I
> need to change to PASV [passive] mode. How di I change to that setting?
>
> Thank you.
>


after connected:
quote pasv

worked for me at least.
 
Re: ftp in Windows command window

ryanoasis wrote:
>
> "Howard - JC Publishing" wrote:
>
>> I need to run ftp through the Windows CMD window. That works fine except I
>> need to change to PASV [passive] mode. How di I change to that setting?
>>
>> Thank you.
>>

>
> after connected:
> quote pasv
>
> worked for me at least.


Dang you're right. At least it says "entering passive". I
personnally don't have the issue but have seen it screw up on some of my
servers. I guess this is an undocumented feature? I've always used
another sftp.exe and it is documented to support PASV as a command.
Thanks, one more little mystery of life solved. That only took 2
years.... :-)
 
Re: ftp in Windows command window

Yeah actually one of the ftp servers I use still won't allow me
to upload even after switching modes.

I am curious can you now upload, download , and view files?

I wanted to use windows ftp for batch purposes but I have found another ftp
server that doesn't force me to specify passive.

"Big_Al" wrote:

> ryanoasis wrote:
> >
> > "Howard - JC Publishing" wrote:
> >
> >> I need to run ftp through the Windows CMD window. That works fine except I
> >> need to change to PASV [passive] mode. How di I change to that setting?
> >>
> >> Thank you.
> >>

> >
> > after connected:
> > quote pasv
> >
> > worked for me at least.

>
> Dang you're right. At least it says "entering passive". I
> personnally don't have the issue but have seen it screw up on some of my
> servers. I guess this is an undocumented feature? I've always used
> another sftp.exe and it is documented to support PASV as a command.
> Thanks, one more little mystery of life solved. That only took 2
> years.... :-)
>
>
 
Re: ftp in Windows command window

ryanoasis wrote:
> Yeah actually one of the ftp servers I use still won't allow me
> to upload even after switching modes.
>
> I am curious can you now upload, download , and view files?
>
> I wanted to use windows ftp for batch purposes but I have found another ftp
> server that doesn't force me to specify passive.
>
> "Big_Al" wrote:
>
>> ryanoasis wrote:
>>> "Howard - JC Publishing" wrote:
>>>
>>>> I need to run ftp through the Windows CMD window. That works fine except I
>>>> need to change to PASV [passive] mode. How di I change to that setting?
>>>>
>>>> Thank you.
>>>>
>>> after connected:
>>> quote pasv
>>>
>>> worked for me at least.

>> Dang you're right. At least it says "entering passive". I
>> personnally don't have the issue but have seen it screw up on some of my
>> servers. I guess this is an undocumented feature? I've always used
>> another sftp.exe and it is documented to support PASV as a command.
>> Thanks, one more little mystery of life solved. That only took 2
>> years.... :-)
>>
>>


http://www.ipswitchft.com/products/...uments_worldwide_moveit55release-moveitfreely
I don't have a server issue to test this with, I just know that over the
years I've run into the issue and we finally skirted around the issue
with the above program. I write a window database application and
routinely have to export data and ftp to sites. So all over the US I
find one now and then that has this issue. My scripts are simple and
seem to work regarless of ftp.exe or sftp.exe except we add the PASV
command.
 
Back
Top