About/Contact

Steve Trefethen

Steve Trefethen is a Director of Engineering at Reply. Contact me

View my LinkedIn profile


Powered by discountASP.NET
referal ID: sdtref
Why recommend discountASP.NET?
$720 in referrals so far!


Calendar

<<  February 2012  >>
MoTuWeThFrSaSu
303112345
6789101112
13141516171819
20212223242526
2728291234
567891011

View posts in large calendar

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.



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

September 26 2007 4:13PM
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.
FacebookDel.icio.usDigg It!

Tags:

Comments (2) -

10/7/2007 9:41:43 PM #

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

10/7/2007 11:17:22 PM #

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.

Steve Trefethen

Add comment




  Country flag
biuquote
  • Comment
  • Preview
Loading