Winzip and FTP to UNIX

Posted on 2006-05-08
Last Modified: 2010-04-13
I have to zip a 200 Meg file and ftp it to a UNIX box
im using the command line interface of winzip (wzzip) to zip the file
Due to the diff in treatment of line feeds and carriage returns between UNIX and DOS environments the file i zip and send when unzipped on the unix box has carraige returns in them
Has anyone come across sucha an issue and how did u resolve this
Question by:viveksuvarna
    LVL 45

    Expert Comment

    Hi viveksuvarna,

    > when unzipped on the unix box has carraige returns in them
    On the Unix prompt execute command

    dos2unix /path/to/file

    The command will performed the necessary conversions


    Author Comment

    Yeah agreed i can dos2unix it
    But i cant change any code on the unix side
    so any code changes /manipulations i do has to be b4 i ftp the file across

    LVL 43

    Accepted Solution

    Try dos2unix.exe from here then and in your batch file to send the file first convert it with DSO2UNIX then ZIP it then FTP it...

    (Googled for above, have not tried this particular download version)

    LVL 45

    Expert Comment

    You wont have to change any code unless you are talking about porting the code rather than simply transfering it ....
    LVL 43

    Expert Comment

    by:Steve Knight
    Sounds good to me.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Free Trending Threat Insights Every Day

    Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

    Suggested Solutions

    NTFS file system has been developed by Microsoft that is widely used by Windows NT operating system and its advanced versions. It is the mostly used over FAT file system as it provides superior features like reliability, security, storage, efficienc…
    Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
    Here's a very brief overview of the methods PRTG Network Monitor ( offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
    This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor ( If you're looking for how to monitor bandwidth using netflow or packet s…

    779 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now