Windows 7 Forums

Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: Renaming a sub-folder within a zipped file

16 Nov 2014   #1
markaz

Windows 7 Home Premium x64
 
 
Renaming a sub-folder within a zipped file

I compressed a .crx file. The file structure of the compressed file is

Compressed CRX
1Sub-Folder
2Sub-Folder
>2file
>3file
3Sub-Folder
>4file

I am attempting to rename 3Sub-Folder. Using 7-Zip, When I attempt to rename it I get the Error message “Not Implemented”. When I attempt to rename it using WinRAR I get the message that “the archive is corrupt. Lastly, when I open the .zip file using Windows Explorer it displays the Compressed CRX but I am unable to display 3Sub-Folder.

Any suggestions on renaming a sub-folder within a zipped file?


My System SpecsSystem Spec
.
16 Nov 2014   #2
Berton

Windows 7 Ultimate 64-bit, Windows 8.1 64-bit, Mac OS X 10.10, Linux Mint 17, Windows 10 Pro TP
 
 

Best I've found is simply to decompress the file into an empty Folder, make the change to necessary files then recompress them, maybe with a slightly different name.
My System SpecsSystem Spec
16 Nov 2014   #3
LMiller7

Windows 7 Pro 64 bit
 
 

Most zip utilities do not directly support renaming a file in the archive. Best is to do as Berton has suggested.
Winzip I believe will do this directly. But be aware that it is a commercial program, not free.
My System SpecsSystem Spec
.

17 Nov 2014   #4
markaz

Windows 7 Home Premium x64
 
 

Thanks or your replies. Not sure if you're familiar with .crx files, but uncompressed it is an extension file used by Chrome, Chromium and other browser using the Chromium source code. It provides additional functionality to the browser. When uncompressed, when you click on the file the 'Windows can't open this file window opens.' It is not possible to view the contents (subfolder and files) of the file when uncompressed so changing their names when uncompressed is not possible. It is only when the file is compressed that you are ale to view its contents.
The pick below is of the Compressed extension called Improved YouTube.crx. When opened with 7-Zip it appears like this:

When compressed file within 7-Zip is double-clicked (opened) its contents are displayed like this:

The subfolder called "_metadata" is the folder that I want to change its name by getting rid of the "_" at the beginning.

I know what you're suggesting, I just don't see how it can be done when the file is uncompressed.
My System SpecsSystem Spec
17 Nov 2014   #5
markaz

Windows 7 Home Premium x64
 
 

I installed WinZip and don't see how to open the CRX within Winzip to display the contents of the file. When the compressed file is double clicked the "Windows cannot open this file type" window opens asking to search the web or use another program.

And boy you weren't wrong about it being a commercial program. So much garbage associated with it.
My System SpecsSystem Spec
18 Nov 2014   #6
markaz

Windows 7 Home Premium x64
 
 

I take it this is a lost cause?
My System SpecsSystem Spec
18 Nov 2014   #7
Berton

Windows 7 Ultimate 64-bit, Windows 8.1 64-bit, Mac OS X 10.10, Linux Mint 17, Windows 10 Pro TP
 
 

Quote   Quote: Originally Posted by markaz View Post
I take it this is a lost cause?
Probably. Keep in mind that renaming files and/or Folders can cause failure of the program/application. I still haven't seen mention of the need/desire for the renaming.
My System SpecsSystem Spec
18 Nov 2014   #8
markaz

Windows 7 Home Premium x64
 
 

Quote   Quote: Originally Posted by Berton View Post
Quote   Quote: Originally Posted by markaz View Post
I take it this is a lost cause?
Probably. Keep in mind that renaming files and/or Folders can cause failure of the program/application. I still haven't seen mention of the need/desire for the renaming.
Good question and thanks for the response. Some background that you are probably aware of. Iron is a Chromium-based browser and the one I highly prefer. Chrome is the big dog and is based upon Chromium as well. When Chromium (open source) updates the source Chrome and Iron follow suit. What's different is that over the years Chrome users have created extensions to improve functionality of the browsers for users. These extensions (.crx files) have been and are installed into Chrome from the Chrome Web Store. Until recently Iron users could access the Chrome Web Store and install the same extensions. Chrome closed that gap and made it such that only the chrome browser could access their Web Store. Not to be deterred programmers created websites that could copy the file (.crx) from the Web Store and download it to your computer, but not installed. Once downloaded the .crx could be installed into Iron.

Not only could Iron users no longer access extensions directly from Chrome, Chrome required developers of extensions to change the file structure of the .crx to make them compatible with Chrome only. The one thing that precluded (and still does) Iron users from installing .crx files was/is the newly created _metadata subfolder that Chrome requires for installation into their browser. Within it contains the "verified_contents.json". Prior to the creation of the "_metadata" subfolder the contents of the .crx file looked like this:


So now in answer to your question when Iron users attempt to install downloaded .crx files containing the "_metadata" they receive the following message:

It was found that renaming the _metadata subfolder by getting rid of the "_" would make it such that the .json could be installed.

Could developers of Iron solve this problem by making files (subfolders) within a .crx file starting with "_" compatible with Iron? I think so!! But they haven't and there's no indication that they will in the foreseeable future. At the end of the day renaming this subfolder is a work around to make .crx files created for the Chrome browser usable by Iron users.
My System SpecsSystem Spec
19 Nov 2014   #9
rvcjew

7 Pro x64, 10 Pro x64
 
 

I would think you could just rename your crx as. Zip extract it with winter to another directory then rename you json to not have the _ then rezip and change it back to a .Crx. Iron won't care if it's signed I believe.
My System SpecsSystem Spec
19 Nov 2014   #10
markaz

Windows 7 Home Premium x64
 
 

You kind of lost me on that one. I'm attaching a zipped .crx file that won't install in Iron. Can't upload the .crx directly because the forum says it's an invalid file. So if you can extract it and do what you're describing, please do and let me know.


Attached Files
File Type: zip ImprovedTube-YouTube-Extension_v0.6.2.5.zip (22.1 KB, 2 views)
My System SpecsSystem Spec
Reply

 Renaming a sub-folder within a zipped file




Thread Tools Search this Thread
Search this Thread:

Advanced Search




Similar help and support threads
Thread Forum
Renaming File or Folder in a Multi session Disc?
I just burned a multi-session disc using gburner(just downloaded). It is unfinalised. CD-R. I forgot to rename the folder and a file in it. Since it is unfinalised, can I rename it?
General Discussion
Compressed (zipped) folder problem?
When I right-click a 13.2 MB MP3 file and send it to a compressed (zipped) folder, the compressed folder is 13.1 MB--pretty much the same size as the original document. Shouldn't there be more compression that takes place? I get the same results when I create a compressed folder on the desktop and...
General Discussion
BSOD while playing D3, got that zipped folder from the SF diag tool.
Well you see, I was playing Diablo 3 right? Never really had any problems before, played for hours. Mind you my GPU does get hot but I got a tool that tells me when its getting to hot and it didn't get over 75c, still hot i know, but i got a window fan pointing right in my case to keep it cool. Now...
BSOD Help and Support
File and folder renaming/organising help please.
Hello, I seem to remember seeing a tool called file 2 folder which puts a files into thier own folder and names the folder the same as the original file, i have had a search both here and google but have not managed to find it. Any nudge in the right direction would be much appreciated. Also, I...
General Discussion
Trouble renaming folders, always get folder or file is open ?
Ok this is really annoying and I've about had it up to here.. :confused: Why is it everytime I want to rename a folder for instance of music, that has never even been opened yet, i always get "The action can't be completed because a folder or file in it is open in another program"?? I could...
General Discussion
SendTo : Compressed (Zipped) Folder : Default?
Hello all: I went a bit nutty and started over-customizing my "Send To" folder, located at "C:\Users\Daniel\AppData\Roaming\Microsoft\Windows\SendTo". In the middle of moving shortcuts around, I lost the shortcut labeled "Compressed (zipped) folder". This is the Windows7 default, not connected to...
General Discussion


Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 23:22.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App