dsniegocki
12-05-2008, 10:26 AM
Don't know if this has been mentioned before, or if there is some better way that I have totally missed - but here's the way that I automate the extraction of themes that I have downloaded, using a freeware command-line unzip tool, and a VBScript file:
1. Download and install FBZip (freeware unzip utility) from http://www.freebyte.com/fbzip
2. Create a new text document and rename it "ThemeUnzip.vbs"
3. Right-click on the newly created "ThemeUnzip.vbs" file and select "edit"
4. Copy and paste the below script into the "ThemeUnzip.vbs" file
==========================================
Dim objShell, objFSO, colFiles, objFile
dim sZippedThemeRoot, sFBZipRoot, sHSThemeRoot
sZippedThemeRoot = "C:\ZippedUpHS_MAMEThemes"
sFBZipRoot = "C:\Program Files\FreeByteZip"
sHSThemeRoot = "C:\HyperSpin\Media\MAME"
Set objShell = CreateObject("WScript.Shell")
Set objFSO = CreateObject("Scripting.FileSystemObject")
Set objFolder = objFSO.GetFolder(sZippedThemeRoot)
Set colFiles = objFolder.Files
For Each objFile in colFiles
objShell.Run """" & sFBZipRoot & "\FBZip"" -e -p """ & sZippedThemeRoot & "\" &
objFile.Name & """ """ & sHSThemeRoot & """"
Next
==========================================
5. Edit the above vb script to reflect the directories of your zipped themes, the location where you installed FBZip, and the directory where your unzipped themes should go (depending on which platform you have zipped themes for, ie MAME)
6. Save the "ThemeUnzip.vbs" file and close it
7. Double-click on the "ThemeUnzip.vbs" file to run the script
From that point on, you can just re-use the "ThemeUnzip.vbs" file to extract new zipped themes that you obtain.
Hope this helps out any of you folks that, like me, might be too lazy to manually one-by-one unzip the themes that others were kind enough to create for everyone.
Dave
1. Download and install FBZip (freeware unzip utility) from http://www.freebyte.com/fbzip
2. Create a new text document and rename it "ThemeUnzip.vbs"
3. Right-click on the newly created "ThemeUnzip.vbs" file and select "edit"
4. Copy and paste the below script into the "ThemeUnzip.vbs" file
==========================================
Dim objShell, objFSO, colFiles, objFile
dim sZippedThemeRoot, sFBZipRoot, sHSThemeRoot
sZippedThemeRoot = "C:\ZippedUpHS_MAMEThemes"
sFBZipRoot = "C:\Program Files\FreeByteZip"
sHSThemeRoot = "C:\HyperSpin\Media\MAME"
Set objShell = CreateObject("WScript.Shell")
Set objFSO = CreateObject("Scripting.FileSystemObject")
Set objFolder = objFSO.GetFolder(sZippedThemeRoot)
Set colFiles = objFolder.Files
For Each objFile in colFiles
objShell.Run """" & sFBZipRoot & "\FBZip"" -e -p """ & sZippedThemeRoot & "\" &
objFile.Name & """ """ & sHSThemeRoot & """"
Next
==========================================
5. Edit the above vb script to reflect the directories of your zipped themes, the location where you installed FBZip, and the directory where your unzipped themes should go (depending on which platform you have zipped themes for, ie MAME)
6. Save the "ThemeUnzip.vbs" file and close it
7. Double-click on the "ThemeUnzip.vbs" file to run the script
From that point on, you can just re-use the "ThemeUnzip.vbs" file to extract new zipped themes that you obtain.
Hope this helps out any of you folks that, like me, might be too lazy to manually one-by-one unzip the themes that others were kind enough to create for everyone.
Dave