Menu

Opening files from an zip archive

2007-05-10
2012-11-13
  • Nobody/Anonymous

    Hey there,

    I've tried a search for my problem but didn't find anything suitable... Sorry, if I should have missed something...

    Npp works fine for me so far, but when trying to open a text file directly from a zip archiv, npp shows a message, that the file doesn't exist in the temp folder and whether I want to create it... If I click "yes", npp terminates (or crashes?), if I click "no", npp only opens an empty file...

    Other editors/viewers do open such files normally...

    Any idea what's wrong here?

    Thanks in advance!

     
    • Nobody/Anonymous

      Hi Joel,

      thanks a lot for your answer.

      Indeed I use the latest version 4.1 of N++. The archive extractor I used when I found the problem, was that one bulit-in in my fav filemanager SpeedCommander.

      Motivated by your answer I made some more tests...

      First I tried to open the text file, when N++ already was running... But brought the same message - so I think it's unlikely that we have a timeout problem...

      Furthermore I tried it with other extractors: With 7-Zip I found the same problem... But with TugZip and the Win XP bulit-in one it works as expected  - the file was opened in same way as from a normal directory.

      Enough information for me then - now I know where I have to investigate.

      Thanks again!

       
    • MJG

      MJG - 2007-05-11

      You didn't say what version of Notepad++ you are using.  It may be that there are spaces in the file path and older versions had trouble with this situation.

      More likely it may be that the file no longer exists.

      Some zip archive extractors like Winzip save the temporary file to your temp directory, and delete it when the extractor program is closed.  Others like 7-Zip will monitor your usage of the program and delete the temporary when you are finished with it.

      Still others create the temporary file, launch the viewer, then delete the temp file after a few seconds.  If Notepad++ takes longer to get going (and it will if there are a lot of plugins installed and the previous session is loaded with lots of files) than this time limit, the file is not there.

      If that is the case, you may be able to configure the extractor program to extend the time limit.  Unfortunately, you probably will need to turn off "File Status Auto-detection" on the MISC tab of the Preferences dialog.  Otherwise Notepad++ will tell you each time that the file no longer exists and ask you what you want to do about it.  --Joel

       
MongoDB Logo MongoDB