problem in transferring files to Unix box

When i transfer a .txt file to a unix box using the

microsoft internet transfer control , i am getting "CONTROL + M " on

each line .

This means that the transfer was not proper .

This is my code .

Code:

Dim b()AsString


Dim strURLAsString


Inet1.URL ="ftp://ip address"


Inet1.Protocol = icFTP


Inet1.AccessType = icDefault


Inet1.UserName ="root"


Inet1.Password ="Compaq"


Inet1.RemotePort = 21


Inet1.RequestTimeout = 100


Inet1.Execute ,"PUT C:\hosts.txt /in/tmp/hosts"

Is there anyway to transfer the file in binary ?

sars

[2232 byte] By [sars] at [2007-12-24]
# 1
Line-endings in Windows are carriage return + line feed. In *nix, it is just a line feed. You are seeing the carriage return character on the Unix side, it is indeed Ctrl+M. Use a smarter Unix tool or strip the carriage return characters from the file before sending it.
nobugz at 2007-8-31 > top of Msdn Tech,Visual Basic,Visual Basic General...