Downloading file from UNIX box to Windows box

Hello,
I have to download file from a unix ftp server to a windows server. The issue is the unix box has multiple files and the filename are the same. When I do an mget the the files overwrite each other and i only get the last one. I have to download these files using a command line batch file. I have tried getting a list of the files and created a batch file with multiple get where it saves the files with a seq number. the issue here is it grabs the first file each time. The bad thing is i can not delete or rename the files on the unix box. Ant ideas how to do this?
Thanks
Matt

I don't quite understand what you mean - Unix doesn't allow for two file names to have exactly the same name in the same folder. Are these files in multiple folders ?

The No Ma'am commandments:

1.) It is O.K. to call hooters 'knockers' and sometimes snack trays
2.) It is wrong to be French
3.) It is O.K. to put all bad people in a giant meat grinder
4.) Lawyers, see rule 3
5.) It is O.K. to drive a gas guzzler if it helps you get babes
6.) Everyone should car pool but me
7.) Bring back the word 'stewardesses'
8.) Synchronized swimming is not a sport
9.) Mud wrestling is a sport

Ahhhh, I see what you mean now. It looks like that the duplicate files must have a non-printing character on some of them. Try using

Code:

ls -lb

This should show you the file listing but also show any escape/control character contained the filename.

If this is the case, I think you'll need to rename the files on the remote server before you can ftp them down to your windows box.

The No Ma'am commandments:

1.) It is O.K. to call hooters 'knockers' and sometimes snack trays
2.) It is wrong to be French
3.) It is O.K. to put all bad people in a giant meat grinder
4.) Lawyers, see rule 3
5.) It is O.K. to drive a gas guzzler if it helps you get babes
6.) Everyone should car pool but me
7.) Bring back the word 'stewardesses'
8.) Synchronized swimming is not a sport
9.) Mud wrestling is a sport

There are time in one day we will send multiple file (we end them with different name) and payer that process the files create a responses for each file but they always created them with the same filename (plus control characters). I have talked to them about this and they say that is how there system works. They say to have to download one file and rename it on the windows side. then download the next one. This issue is I can not delete or rename the files and when I download one file and rename is on my side I download the next one with the same filename and the batch file grabs the first one again and again. I guess i will have to manually download these responses. Thanks for all your help!!!!

How about loading up a linux VM on your Windows server and ftp'ing the files down onto that Linux box ? Haven't tried this personally but it *may* just download the files with the escape character in the filename and then you should be able to rename the offending files.

I am puzzled though as to why they would purposely include control characters in a filename, strange!

The No Ma'am commandments:

1.) It is O.K. to call hooters 'knockers' and sometimes snack trays
2.) It is wrong to be French
3.) It is O.K. to put all bad people in a giant meat grinder
4.) Lawyers, see rule 3
5.) It is O.K. to drive a gas guzzler if it helps you get babes
6.) Everyone should car pool but me
7.) Bring back the word 'stewardesses'
8.) Synchronized swimming is not a sport
9.) Mud wrestling is a sport