Results 1 to 7 of 7
  1. #1
    Join Date
    Apr 2009
    Posts
    9

    Default "Open with" on files in zip archives?

    Hi!

    is it possible to start an application with the "open with" dialog, when the file to open is residing in a zip archive?

    I got an error. Or do I have to make a special arrangement for that, tailored for WinRAR, 7Zip or alike?

    Thanks.

  2. #2
    Join Date
    Oct 2007
    Location
    Madison, WI
    Posts
    11,788

    Default

    Hello,

    Beyond Compare passes the exact path of the file, including in the zip. If the program knows how to handle a patch that includes a zip file (such as c:\folder\archive.zip\test.txt), then it should be able to work with our Open With command.

    If you create a custom Open With that calls Beyond Compare, we are able to handle the paths. Which program are you using, and can it handle a path passed in from the command line pointing to a file within an archive?
    Aaron P Scooter Software

  3. #3
    Join Date
    Apr 2009
    Posts
    9

    Default

    Got it. Now I understand why it didn't work for me. I assumed that the files are extracted/re-imported to the archive by BC, itself, and passed to the program as a copy.

    Quote Originally Posted by Aaron View Post
    Which program are you using, and can it handle a path passed in from the command line pointing to a file within an archive?
    Tried to use PAINT.NET, DXTBmp (a DDS image processing tool) and some other game-modding related tools.

    I guess there is no chance, because probably none of them will ever be able to deal with paths poking into an archive.

    Thanks for Listening, Aaron.
    Reinhard
    Last edited by Reinhard; 15-Jul-2010 at 01:54 AM.

  4. #4
    Join Date
    Oct 2007
    Location
    Madison, WI
    Posts
    11,788

    Default

    No problem.

    One bit of advice: you could try creating a custom Open With command in Beyond Compare that would run the extraction process for you to a temporary location. Would these files need to be saved back into the archive, or are you opening them just to view them?
    Aaron P Scooter Software

  5. #5
    Join Date
    Apr 2009
    Posts
    9

    Default

    Just for viewing them.

  6. #6
    Join Date
    Oct 2007
    Location
    Madison, WI
    Posts
    11,788

    Default

    Hello Reinhard,

    You could create a .bat file that first calls your installed zip program to perform an unzip from the command line to a temporary location, then call the program you wish to view the file on that temporary version. Once this is setup to run on a specific file, you can replace that filename/location with a .bat file command line variable (%1).

    In BC3, you can then set the Open With to call this bat file on a specific selection, use the %f parameter, and that parameter can be accessed within the .bat file as %1.
    Aaron P Scooter Software

  7. #7
    Join Date
    Apr 2009
    Posts
    9

    Default

    Yes, thanks, will try it later.

    Hope one of that archivers understand the "c:\folder\archive.zip\test.txt" syntax. My poor windows batch language knowledge is ages old.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •