Steve Trefethen
Contact me Send mail to the author(s)
About Me
View my LinkedIn profile


Powered by discountASP.NET
referal ID: sdtref
Why recommend discountASP.NET?

Archives
Tags
Disclaimer
The posts on this weblog are provided �AS IS� with no warranties, and confer no rights. The opinions expressed herein are my own personal opinions and do not represent my employer�s view in any way.
# Wednesday, September 26, 2007
« Facebook.NET Starter Kit update | Main | And baby makes three... »

Using the LIST command with a wildcard on Vista's FTP server

Posted @ 9:13AM

Categories: Vista

Tags:

Lately, I’ve been working on code that fetches EDI files from and FTP server using a VM running Windows XP. But yesterday rather than go through a VM I decided to use Vista’s FTP server for testing which turned out to be a bad idea.

I’m new to this code base so I’ve been stepping through it to see how it works and immediately started having problems where the app failed to download files off the server. The code is based on edtFTPnet source so I started stepping through it to see what was going on and found it uses FTP’s LIST command as follows "LIST *.NS". That all seemed fine but I never got any results back. After double checking that the expected files were really there I jumped to the command line to test things out. In my first test I ran into the fact that LIST isn’t supported from Windows FTP.EXE command line tool since it requires PASV mode. That’s ok I’ll just use the DIR command:

Windows Vista FTP command line

No dice. While a plain DIR command works, specifying a wildcard of "*.NS" failed! What’s up with that? I fire up my XP VM and this works just fine under XP. It turns out this is a bug in Windows Vista’s FTP server. Thanks Noel for finding that link. Btw, we both got a nice laugh over the suggested workaround:

"To work around this problem, do not use an FTP LIST command together with a file mask argument."

Yeah, thanks that’s a big help. On a side note, I just found out the broker our client is exchanging EDI files with is switching FTP server software, I just hope it’s not to Windows Vista.
Sunday, October 07, 2007 2:41:43 PM (Pacific Daylight Time, UTC-07:00)
I know no one who dares to run MS FTPs servers - it's not their business, thus they don't care much about them. There are many commercial and open source better alternatives.
Tired user
Sunday, October 07, 2007 4:17:22 PM (Pacific Daylight Time, UTC-07:00)
Yes, running an MS FTP server would not be wise. The target in my case is running on Red Hat but I thought I could get away with testing on Vista but no such luck. The fact that Vista has been out since January and this is still unpatched indicates how serious they take this problem, not.
OpenID
Please login with either your OpenID above, or your details below.
Name
E-mail
(will show your gravatar icon)
Home page

Comment (Some html is allowed: a@href@title, b, blockquote@cite, em, i, strong) where the @ means "attribute." For example, you can use <a href="" title=""> or <blockquote cite="Scott">.  

Live Comment Preview