Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: write long file names with pkunzip  (Read 5562 times)

0 Members and 1 Guest are viewing this topic.

rgalecki

    Topic Starter


    Newbie

    write long file names with pkunzip
    « on: August 24, 2009, 07:58:40 AM »
    Hi,

    I'm trying to write a batch file to unzip filenames that are longer than the 8.3 DOS naming convention.  For example I want to unzip a file like Very_Long_Filename.txt in zipfile.zip to a new directory.

    I want to preserve the filename as Very_Long_Filename.txt and not get Very_lon.txt with DOS 8.3 naming convention.  Is there a way to do this with PKUNZIP?

    Are there other unzip utilities out there with a command line interface that can execute a DOS batch file?  Any help would be greatly appreciated.

    Salmon Trout

    • Guest
    Re: write long file names with pkunzip
    « Reply #1 on: August 24, 2009, 02:00:00 PM »
    What OS are you using?

    billrich

    • Guest

    WillyW



      Specialist
    • Thanked: 29
    • Experience: Experienced
    • OS: Windows XP
    Re: write long file names with pkunzip
    « Reply #3 on: August 25, 2009, 07:43:08 PM »
    Hi,

    I'm trying to write a batch file to unzip filenames that are longer than the 8.3 DOS naming convention.  For example I want to unzip a file like Very_Long_Filename.txt in zipfile.zip to a new directory.

    I want to preserve the filename as Very_Long_Filename.txt and not get Very_lon.txt with DOS 8.3 naming convention.  Is there a way to do this with PKUNZIP?

    Are there other unzip utilities out there with a command line interface that can execute a DOS batch file?  Any help would be greatly appreciated.

    I believe that PKUnzip cannot do what you want.   I've used it for years, and  either just get used to the truncated file names,  or simply don't use PKUnzip when I have long file names to deal with.


    Check out 7-zip .
    http://www.7-zip.org/download.html
    There is a command line version, and a GUI version.
    ( I keep a copy of the command line version in my utils directory, in the path)


    I just tried the command line version here, and it handled long file names just fine.   
    Both zipping and unzipping.
    7-zip does other formats besides PKZip compatible,  so if you want to work with plain old PKZip type files, be sure to get the command line switches correct.

    Also,  check out Zip and Unzip:
    http://www.info-zip.org/
    It almost does not matter what operating system you have...   there is a version of Zip and Unzip for it.   :)

    All are free.

    .



    Salmon Trout

    • Guest
    Re: write long file names with pkunzip
    « Reply #4 on: August 26, 2009, 12:19:32 AM »
    This is baffling me slightly:

    Quote
    Are there other unzip utilities out there with a command line interface that can execute a DOS batch file?

    Does he mean "that can be called from a DOS batch file?"

    And does he really mean "DOS"?


    rgalecki

      Topic Starter


      Newbie

      Re: write long file names with pkunzip
      « Reply #5 on: August 26, 2009, 07:47:35 AM »
      Thank you all for your replies.  I found another utility: pkzip v2.5 from pkware.  That one works just fine.