![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
|
Welcome to Vista Forums we are your forum to discuss Windows Vista x64 and x86 systems. Whether you need help or just want to post an idea you have on Vista, this is the forum for you.
br> br> |
| |||||||
![]() |
| | Thread Tools | Display Modes |
| | #1 (permalink) |
| Guest | FTP DIR Hangs in Vista I have a simple batch FTP script that hangs in Vista on a DIR command, but works in XP. Script Open ipaddress username pwd prompt dir Any help would be greatly apprecitated...Thanks |
My System Specs![]() |
| | #2 (permalink) |
| Guest | Re: FTP DIR Hangs in Vista "MicroMite" <MicroMite@discussions.microsoft.com> wrote in message news:8E90F0D1-1290-4EF0-9F10-1F2DC2FDECF2@microsoft.com... >I have a simple batch FTP script that hangs in Vista on a DIR command, but > works in XP. > > Script > Open ipaddress > username > pwd > prompt > dir > > Any help would be greatly apprecitated...Thanks Probably because the firewall hasn't been set up to allow ftp.exe as a listening program. FTP has two modes of operation - passive and active. The command-line FTP client in Windows (and, let's face it, pretty much every other operating system) uses active mode, which means that the FTP server must connect to the FTP client on a random port that the FTP client sends to the server. Try turning on debug (ftp -d) to view what commands are sent to the server, to see what I'm talking about. Alun. ~~~~ Texas Imperial Software | Web: http://www.wftpd.com/ 23921 57th Ave SE | Blog: http://msmvps.com/alunj/ Woodinville WA 98072-8661 | WFTPD, WFTPD Pro are Windows FTP servers. Fax/Voice +1(425)807-1787 | Try our client software, WFTPD Explorer. |
My System Specs![]() |
| | #3 (permalink) |
| Guest | Re: FTP DIR Hangs in Vista Thanks for you help. I checked and my firewall service in Vista is not started so I assume that can't be the problem. I agree, however, that it seems like a firewall problem. I also tried using debug mode and passive mode. I wasn't sure how to enable passive mode but I think I did it by sending the "PASV" command to the other server by using "Quote PASV" command. Unfortunately, It still hangs (see below) in passive mode. Ftp C:\Users\xxxxxx>ftp -d ftp> open 99.999.99.999 Connected to 99.999.99.999. 220-Microsoft FTP Service 220 xxxxxxx welcomes you to their FTP site. Authorized personnel only, ease. User (99.999.99.999 none)): xxxxxx---> USER xxxxxxx 331 Password required for xxxxxxx. Password: ---> PASS xxxxxxx 230 User xxxxxxx logged in. ftp> prompt Interactive mode Off . ftp> quote pasv ---> pasv 227 Entering Passive Mode (66,240,31,227,5,97). ftp> dir ---> PORT 192,168,1,102,193,4 200 PORT command successful. ---> LIST 150 Opening ASCII mode data connection for /bin/ls. (hangs indefinetely at this point - must ctrl-c out) "alun@texis.invalid" wrote: > "MicroMite" <MicroMite@discussions.microsoft.com> wrote in message > news:8E90F0D1-1290-4EF0-9F10-1F2DC2FDECF2@microsoft.com... > >I have a simple batch FTP script that hangs in Vista on a DIR command, but > > works in XP. > > > > Script > > Open ipaddress > > username > > pwd > > prompt > > dir > > > > Any help would be greatly apprecitated...Thanks > > > Probably because the firewall hasn't been set up to allow ftp.exe as a > listening program. > > FTP has two modes of operation - passive and active. The command-line FTP > client in Windows (and, let's face it, pretty much every other operating > system) uses active mode, which means that the FTP server must connect to > the FTP client on a random port that the FTP client sends to the server. > > Try turning on debug (ftp -d) to view what commands are sent to the server, > to see what I'm talking about. > > Alun. > ~~~~ > Texas Imperial Software | Web: http://www.wftpd.com/ > 23921 57th Ave SE | Blog: http://msmvps.com/alunj/ > Woodinville WA 98072-8661 | WFTPD, WFTPD Pro are Windows FTP servers. > Fax/Voice +1(425)807-1787 | Try our client software, WFTPD Explorer. > |
My System Specs![]() |
| | #4 (permalink) |
| Guest | Re: FTP DIR Hangs in Vista "MicroMite" <MicroMite@discussions.microsoft.com> wrote in message news:217B409C-EA7C-4403-8DD8-0951467F379A@microsoft.com... > Thanks for you help. I checked and my firewall service in Vista is not > started so I assume that can't be the problem. I agree, however, that it > seems like a firewall problem. I also tried using debug mode and passive > mode. I wasn't sure how to enable passive mode but I think I did it by > sending the "PASV" command to the other server by using "Quote PASV" > command. > Unfortunately, It still hangs (see below) in passive mode. That's because "quote pasv" is not enough to do passive mode. When you sent that command, you received back an IP address and port (66,240,31,227,5,97) that the server was listening on, and then you went ahead and tried your transfer in active mode anyway (that's what the PORT command does - tell the server that you've changed your mind and want to do active mode transfers again). You should try fetching another FTP client, that can be configured to use passive mode for data transfers, and see if it works. Alun. ~~~~ -- Texas Imperial Software | Web: http://www.wftpd.com/ 23921 57th Ave SE | Blog: http://msmvps.com/blogs/alunj/ Woodinville WA 98072-8661 | WFTPD, WFTPD Pro are Windows FTP servers. Fax/Voice +1(425)807-1787 | Try our FTP client software, WFTPD Explorer. |
My System Specs![]() |
![]() |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| vista hangs... | mathews2010 | General Discussion | 4 | 11-29-2007 03:28 PM |
| Vista hangs while I am away | WGSGNUAYHTTE | Vista General | 7 | 10-16-2007 12:12 AM |
| Vista hangs after log on. | HernĂ¡n | Vista General | 2 | 03-20-2007 05:03 PM |
| Vista Hangs | shawries | Vista installation & setup | 0 | 02-02-2007 04:01 PM |
| vista ie 7 hangs | RanjanSamant | Vista General | 3 | 06-22-2006 11:07 PM |