I was just given a project to pull in some files via FTP and import the data to a database. The files comes from two sources. The first source went off without a hitch. I figured the 2nd phase would be a piece of cake. Instead it was a big slab of brick wall. In order to make sure all worked OK, I ran FTP from the command shell (I still call it DOS). I was able to login, change the directory with cd and then issue a dir command to get a list of the files. However when I issue a cd or a dir command from the C# application using NetworkStream and TCPClient - I'm getting a 500 error - CD not understood and 500 DIR not understood. Anyone have a clue why this works differently in the C# app then in a direct FTP session?