Ricoh Kyocera Firmware Multiple Zip-File Extraction

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • NeoMatrix
    Senior Tech.

    2,500+ Posts
    • Nov 2010
    • 3514

    #1

    Ricoh Kyocera Firmware Multiple Zip-File Extraction

    For those doing multiple Firmware updates for Windows 7 machines.

    If anybody is interested I have written a simple unzip.bat batch file program that runs from either a windows run (cmd.exe) or a shortcut link off the desktop. It extracts multiple firmware *.zip or *.exe file out to SD or CF cards.

    In the case of Ricoh for example, you manually download all 20-30 firmware files off the Ricoh firmware server and then extract all these files one-by-one onto the root directory romdata on the SD card. This little batch file does the extraction in one process. Best part is this bat file only extract the Ricoh(*.fwu) or Kyocera (*.Bin) from both the *.zip and *.exe archive. It disregards all the readme.txt and PDF docfiles that are not needed in the firmware upgrade. It then creates a directory on the SD/CF card call romdata(Ricoh) and extracts the filespec only to the SD card. Quick and easy for those of us in a hurry....

    You'll need the command line extractor Zip-7 (7za.exe) Free download of the net.

    All the command line parameters an software switches have been done for you, just run the app and type in either Ricoh or Kyocera plus a drive and/or path.
    Ricoh Example : unzip ricoh j:\ { SD automatic defaults to j:\romdata\
    Kyocera Exmple : unzip kyocera h:\ {CF directory created h:\ }

    Both Ricoh and Kyocera run from the same batch file program. It's not bullet proof but it will save you loads of time on the fly....

    Let me know if any one wants it; I will post it on the forum....

    GDM

    P.S. The batch file is not an EXE it's just an ordinary text file, so don't worry about viruses or hacking. You can edit the batch file yourself to suite your own preferences....
    Last edited by NeoMatrix; 11-13-2010, 01:58 AM.
    Inauguration to the "AI cancel-culture" fraternity 1997...
    •••••• •••[§]• |N | € | o | M | Δ | t | π | ¡ | x | •[§]••• ••••••
  • rapetou01240

    #2
    Re: Ricoh Kyocera Firmware Multiple Zip-File Extraction

    i'm very interesed by your program.
    please can you give me ?

    thank a lot.
    my email is roberto.barres@laposte.net



    Originally posted by NeoMatrix
    For those doing multiple Firmware updates for Windows 7 machines.

    If anybody is interested I have written a simple unzip.bat batch file program that runs from either a windows run (cmd.exe) or a shortcut link off the desktop. It extracts multiple firmware *.zip or *.exe file out to SD or CF cards.

    In the case of Ricoh for example, you manually download all 20-30 firmware files off the Ricoh firmware server and then extract all these files one-by-one onto the root directory romdata on the SD card. This little batch file does the extraction in one process. Best part is this bat file only extract the Ricoh(*.fwu) or Kyocera (*.Bin) from both the *.zip and *.exe archive. It disregards all the readme.txt and PDF docfiles that are not needed in the firmware upgrade. It then creates a directory on the SD/CF card call romdata(Ricoh) and extracts the filespec only to the SD card. Quick and easy for those of us in a hurry....

    You'll need the command line extractor Zip-7 (7za.exe) Free download of the net.

    All the command line parameters an software switches have been done for you, just run the app and type in either Ricoh or Kyocera plus a drive and/or path.
    Ricoh Example : unzip ricoh j:\ { SD automatic defaults to j:\romdata\
    Kyocera Exmple : unzip kyocera h:\ {CF directory created h:\ }

    Both Ricoh and Kyocera run from the same batch file program. It's not bullet proof but it will save you loads of time on the fly....

    Let me know if any one wants it; I will post it on the forum....

    GDM

    P.S. The batch file is not an EXE it's just an ordinary text file, so don't worry about viruses or hacking. You can edit the batch file yourself to suite your own preferences....

    Comment

    • Tonerbomb
      AutoMajical Resolutionist

      Site Contributor
      2,500+ Posts
      • Feb 2005
      • 2589

      #3
      Re: Ricoh Kyocera Firmware Multiple Zip-File Extraction

      Nice job NEO, however here in the states we can do the batch download and extraction from the Ricoh esource web site already.
      Mystic Crystal Revelations

      Comment

      • rapetou01240

        #4
        Re: Ricoh Kyocera Firmware Multiple Zip-File Extraction

        i'm still interested by the neo's solution...

        Originally posted by Tonerbomb
        Nice job NEO, however here in the states we can do the batch download and extraction from the Ricoh esource web site already.

        Comment

        • Tonerbomb
          AutoMajical Resolutionist

          Site Contributor
          2,500+ Posts
          • Feb 2005
          • 2589

          #5
          Re: Ricoh Kyocera Firmware Multiple Zip-File Extraction

          Originally posted by rapetou01240
          i'm still interested by the neo's solution...
          I am too, I'm not knockin NEO at all. I give him props for doing it and being willing to share it with the consortium!!!!!!!!!!! I just wanted to share with him that Ricoh esource has that capability.
          Mystic Crystal Revelations

          Comment

          • ruben
            The New Guy

            1,000+ Posts
            • Oct 2012
            • 1203

            #6
            Re: Ricoh Kyocera Firmware Multiple Zip-File Extraction

            For Ricoh firmwares: Select all the firmware executable files, right click, 7-Zip, Extract files..., set Path mode to No pathnames, then extract.

            Don't worry about overwritting. In the output folder all the firmware files are readily available.

            For mass downloading, I just open each firmware in a new tab with middle-click, takes two seconds.

            Comment

            • NeoMatrix
              Senior Tech.

              2,500+ Posts
              • Nov 2010
              • 3514

              #7
              Re: Ricoh Kyocera Firmware Multiple Zip-File Extraction

              Righto guys ....
              Sorry for the slow reply; it is the festive season and we've been doing some holiday camping out.
              I will find the UNZIP.BAT source code and post it here for others to use. Bare with me as I have been loaning USB sticks out to people an I feel the code may not be ready at hand.

              Neo
              Inauguration to the "AI cancel-culture" fraternity 1997...
              •••••• •••[§]• |N | € | o | M | Δ | t | π | ¡ | x | •[§]••• ••••••

              Comment

              • NeoMatrix
                Senior Tech.

                2,500+ Posts
                • Nov 2010
                • 3514

                #8
                Re: Ricoh Kyocera Firmware Multiple Zip-File Extraction

                I can't find my lastest Unzip batch version 2.1 so here is version 2.0.
                See the attached *.zip file on this this thread.
                Just make sure the you place 7za.exe in a system file directory so windows can find it.

                Decompress the attached Unzip Bat.zip anywhere you wish.
                @Rem This batch file is for extracting multiple firmware zip file onto an SD/CF card or hardrive directory.
                @Rem Copyright(C) 2010 G.D.Mutch
                @Rem Date : 12-11-10 @REM Version 2.0
                @Rem Imporant : Requires ZIP-7.exe archive utility
                @REM Usage 7ZA.EXE e -i!*.fwu -y firmware.zip
                @REM 7ZA.EXE e = extract -i = includefiles !*.fwu = !filespec -o = Ouput direct -y = yes all prompts Firmware.zip archive. @REM 7ZA full file and path name must exist
                @REM Set Z7apath=c:\program files\7za\7ZA.EXE

                Set Zip7path=c:\program files\7Za\7ZA.EXE

                @Echo off @Cls @Echo ********* RICOH ********* KYOCERA *************** @Echo ************ EXTRACT FIRMWARE ******************* @Echo ************ Unzip Batch Mode ******************* @Echo ***************************** By G.D.Mutch ****** @Echo (all lowercase) @Echo Usage : unzip [drive:\path\romdata] @Echo Example : unzip h: {defaults h:\romdata} @Echo Copy unzip.bat to the *.zip directory and run it. @ECHO unzip extracts *.zip and *.exe archive formats. @EchO ======================================Ver 2.0==== @pause

                Set direct=%1\romdata @REM change default drive here if param line empty. IF "%1x"=="x" Set direct=c:\romdata

                IF EXIST %direct%D rename %direct%D %direct%E IF EXIST %direct%C rename %direct%C %direct%D IF EXIST %direct%B rename %direct%B %direct%C IF EXIST %direct%A rename %direct%A %direct%B IF EXIST %direct% rename %direct% %direct%A

                @REM Make the directory in the SD/CF card or H/D path. @REM MD Will default with an echo error if directory already exists. If NOT EXIST %direct%\.. md %direct%

                @REM %%f = file variable to use @Echo ****** Extracting Multiple Firmware ******** for %%f in (*.zip;*.exe) do %Zip7path% e -i!*.fwu -i!*.bin -o%direct% -y %%f @GOTO END:

                :Error @ECHO ERROR : User input parameters are invalid check : @ECHO [drive\path\romdata] : %1

                @GOTO EOF:

                :End @Echo Remember only "*. fwu or *.bin" files in each archive.zip are extracted to %direct%. @Echo All *.pdf and readme.txt files are NOT extracted from the zip archive. @pause

                :EOF
                Attached Files
                Last edited by NeoMatrix; 01-09-2014, 01:57 PM.
                Inauguration to the "AI cancel-culture" fraternity 1997...
                •••••• •••[§]• |N | € | o | M | Δ | t | π | ¡ | x | •[§]••• ••••••

                Comment

                • NeoMatrix
                  Senior Tech.

                  2,500+ Posts
                  • Nov 2010
                  • 3514

                  #9
                  Re: Ricoh Kyocera Firmware Multiple Zip-File Extraction

                  Unzip Batch version 2.1
                  You may share this with whom ever.

                  You can extract the attached file "u.zip" it contains everything to extract firmware files.
                  The attach file includes 7za.exe and the unzip.bat version 2.1 shown below.


                  --------------------------------------------------8<--------------------------------------------------------

                  @Echo off
                  @Cls

                  @REM This batch file is for extracting multiple firmware zip files onto an SD/CF card or hardrive directory.
                  @REM Copyright(C) 2010 G.D.Mutch Date : 12-11-10 (dd-mm-yy)
                  @REm Version 2.1
                  @REM Important : Requires ZIP-7.exe archive utility. This can be downloaded off the Internet.
                  @REM Usage : 7ZA.EXE e -i!*.fwu -y firmware.zip
                  @REM 7ZA.EXE e = extract -i = includefiles !*.fwu = !filespec -o = Ouput direct -y = yes all prompts Firmware.zip archive.
                  @REM 7ZA full file and path name must exist : Example : Set Zip7path="c:\program files\7za\7ZA.EXE"
                  @REM Must use quotation marks if spaces in path name
                  @REM Please feel free to share this batch file with whomever.

                  @Set Zip7path="C:\program files\7za\7ZA.EXE"
                  @Echo.
                  @Echo ********* RICOH ********* KYOCERA ******************
                  @Echo ************ EXTRACT FIRMWARE **********************
                  @Echo ************ Unzip Batch Mode **********************
                  @Echo ***************************** By G.D.Mutch *********
                  @Echo * *
                  @Echo * Usage : unzip [drive:\path\romdata] *
                  @Echo * Example : unzip h: {defaults h:\romdata} *
                  @Echo * Copy unzip.bat to the firmware source directory. *
                  @Echo * unzip extracts *.zip and *.exe archive formats. *
                  @Echo ======================================[Ver 2.1]=====
                  @Echo.

                  @Set direct=%1\romdata
                  @REM change default drive here if param line empty.
                  @REM IF "%1x"=="x" Set direct=c:\romdata
                  @IF "%1x"=="x" goto Error
                  @pause

                  @REM Allow Unzip.Bat to run 5 times while saving any existing romdata files.
                  @REM Each time this batch file is run all previous romdata-? folders are renamed letter-incremented.
                  @REM This prevents overwritting previous firmware by mistake.Drop the last Romdata-E folder off the list.
                  @REM Always Delete 5th backup directory Romdata-E and sub directories reguardless.

                  @IF EXIST %1\Romdata-E RD %1\Romdata-E /Q /S
                  @IF EXIST %1\Romdata-D RENAME %1\Romdata-D Romdata-E
                  @IF EXIST %1\Romdata-C RENAME %1\Romdata-C Romdata-D
                  @IF EXIST %1\Romdata-B RENAME %1\Romdata-B Romdata-C
                  @IF EXIST %1\Romdata-A RENAME %1\Romdata-A Romdata-B
                  @IF EXIST %direct% RENAME %direct% Romdata-A
                  @REM @IF EXIST %1\Romdata-B Echo Previous romdata folders rename incremented to:
                  @REM @Echo %1\Romdata-?.
                  @Echo.

                  @REM Make the directory in the SD/CF card or H/D path.
                  @REM MakeDir Will default with an error echo if directory already exists.

                  IF NOT EXIST %direct% md %direct%

                  @REM %%f = file variable to use. Add your extract file specs inside the brackets.
                  @Echo ****** 7-Zip is Extracting Multiple Firmware ********
                  FOR %%f in (*.zip;*.exe) do %Zip7path% e -i!*.fwu -i!*.bin -o%direct% -y %%f
                  @GOTO END:

                  :Error
                  @ECHO ERROR : User input parameters are invalid check :
                  @ECHO [drive\path\romdata] : %1

                  @GOTO EOF:

                  :End
                  @Echo.
                  @Echo ************************************************** ****
                  @Echo All "*. fwu or *.bin" files have been extracted to :
                  @Echo %direct%.
                  @Echo ************************************************** ****
                  @IF EXIST %1\Romdata-B Echo Existing romdata folder(s) rename/incremented to:
                  @Echo %1\Romdata-?.
                  @Echo ************************************************** ****
                  @Echo.
                  @pause


                  :EOF

                  -----------------------------------8<------------------------------------------------------------
                  Attached Files
                  Inauguration to the "AI cancel-culture" fraternity 1997...
                  •••••• •••[§]• |N | € | o | M | Δ | t | π | ¡ | x | •[§]••• ••••••

                  Comment

                  • NeoMatrix
                    Senior Tech.

                    2,500+ Posts
                    • Nov 2010
                    • 3514

                    #10
                    Re: Ricoh Kyocera Firmware Multiple Zip-File Extraction

                    [Firmware Unzip23.bat version 2.3]

                    General update to version 2.2
                    For those people who have request the use of this batch file.
                    The following is a version update from 2.1 to 2.3
                    The current batch file is used the same as all other versions.

                    In version 2.3 there have been some minor error handling changes, along with additional output for user feed back;otherwise the *.bat file is just the same.

                    If you cut and paste the below snip text to a *.bat, file you will need to repair the menu spacing * * lines in
                    the menu block. CTN automatically removes those duplicate spaces causing the * * indentation.
                    You must also place any line wrapped text back to the previous single line.



                    ---------------------------------8<------------Cut an paste to any *.bat file ----------------------------------------------
                    @Echo off
                    @CLS
                    @REM This batch file is for extracting multiple firmware zip files onto an SD/CF card or hardrive
                    @REM directory.
                    @REM Copyright(C) 2010 G.D.Mutch Updated : 16/08/2016 (dd/mm/yy)
                    @REM Version 2.3
                    @REM [Ver2.3] Minor error handling modifications. Add more visual feed back.
                    @REM Important : Requires ZIP-7.exe archive utility. This can be downloaded off the Internet.
                    @REM Usage : 7ZA.EXE e -i!*.fwu -y firmware.zip
                    @REM 7ZA.EXE e = extract -i = includefiles !*.fwu = !filespec -o = Ouput direct -y = yes all
                    @REM prompts Firmware.zip archive.
                    @REM 7ZA full file and path name must exist : Example : Set Zip7path="c:\program files (x86)
                    @REM \7za\7ZA.EXE"
                    @REM Must use quotation marks if spaces are used in above path name.
                    @REM
                    @REM HOW TO USE :
                    @REM To uses this file, simple copy the unzip23.bat batch file into the same firmware directory
                    @REM and double click.
                    @REM When run with out any paramaters, the program will default to the "Homedrive\romdata"
                    @REM directory of the operating system main drive.
                    @REM To force extraction to a SD/CF card, run the upzip23.bat file from a command prompt with
                    @REM the drive letter of the SD/CF card. Example unzip23 h:
                    @REM Please feel free add your own improvement ideas and/or to share this batch file with
                    @Rem whomever.
                    @Rem Important set the default 7za.exe path here
                    @REM Set Zip7path="C:\Program Files (x86)\7za\7ZA.EXE"
                    @Set Zip7path="%ProgramFiles(x86)%\7za\7ZA.EXE"
                    @REM Echo %Zip7path%
                    IF NOT EXIST %Zip7path% GOTO ERROR:
                    @Echo.
                    @Echo ****************[ RICOH - KYOCERA ]******************
                    @Echo * EXTRACT FIRMWARE *
                    @Echo * Unzip Batch Mode *
                    @Echo ********************************* Copytechnet.com ***
                    @Echo * *
                    @Echo * Usage : unzip23 [drive:\path\] *
                    @Echo * Example : unzip23 h: {defaults h:\romdata} *
                    @Echo * Copy unzip23.bat to the firmware source directory.*
                    @Echo * Unzip23 extracts *.zip and *.exe archive formats, *
                    @Echo * an exports the *.fwu,*.rfu and *.bin files only. *
                    @Echo * *
                    @Echo ***************************************[Ver 2.3]*****
                    @Echo.
                    @Set drive=%1
                    @Set direct=%1\romdata
                    @REM change default drive here if param line empty.
                    @IF "%1x"=="x" Set drive=%HOMEDRIVE%
                    @IF "%1x"=="x" Set direct=%HOMEDRIVE%\romdata
                    @Echo Extracting to :%direct%
                    @Echo Press Ctrl-C at any time to terminate batch process.
                    @Echo.
                    @pause
                    @REM Allow Unzip.Bat to run 5 times while saving any existing romdata directory files.
                    @REM Each time this batch file is run all previous romdata_? folders are renamed letter incremented.
                    @REM Renaming prevents overwritting previous firmware by mistake. Delete the last Romdata_E
                    @REM folder off the list.
                    @REM Always Delete 5th backup directory Romdata_E and sub directories regardless.
                    @IF NOT EXIST %drive%\Romdata_E GOTO AD:
                    @Echo Deleted directory %drive%\Romdata_E
                    @RD %drive%\Romdata_E /Q /S
                    :AD
                    @IF NOT EXIST %drive%\Romdata_D GOTO AC:
                    @RENAME %drive%\Romdata_D Romdata_E
                    @Echo %drive%\Romdata_D Rename to %drive%\Romdata_E
                    :AC
                    @IF NOT EXIST %drive%\Romdata_C GOTO AB:
                    @RENAME %drive%\Romdata_C Romdata_D
                    @Echo %drive%\Romdata_C Rename to %drive%\Romdata_D
                    :AB
                    @IF NOT EXIST %drive%\Romdata_B GOTO AA:
                    @RENAME %drive%\Romdata_B Romdata_C
                    @Echo %drive%\Romdata_B Rename to %drive%\Romdata_C
                    :AA
                    @IF NOT EXIST %drive%\Romdata_A GOTO AR:
                    @RENAME %drive%\Romdata_A Romdata_B
                    @Echo %drive%\Romdata_A Rename to %drive%\Romdata_B
                    :AR
                    @IF NOT EXIST %drive%\Romdata GOTO MakeDirect:
                    @RENAME %drive%\Romdata Romdata_A
                    @Echo %drive%\Romdata Rename to %drive%\Romdata_A
                    :MakeDirect
                    @Echo.
                    @REM Make the directory in the SD/CF card or H/D path.
                    @REM MakeDir Will default with an error echo if directory already exists.
                    @IF NOT EXIST %direct% md %direct%
                    @REM %%f = file variable to use. Add your extract file specs inside the brackets.
                    @Echo ****** 7-Zip is Extracting Multiple Firmware ********
                    @FOR %%f in (*.zip;*.exe) do %Zip7path% e -i!*.fwu -i!*.bin -i!*.rfu -o%direct% -y %%f
                    @GOTO END:
                    :Error
                    @Echo ERROR : User input parameters are invalid check :
                    @Echo [drive\path\romdata] : %1
                    @Echo Check 7za.exe is in the correct directory.
                    @GOTO EOF:
                    :End
                    @Echo.
                    @Echo ************************************************** ********
                    @Echo All "*.fwu, *.rfu or *.bin" files have been extracted to :
                    @Echo %direct%
                    @Echo ************************************************** ********
                    @IF NOT EXIST %1\Romdata_B GOTO EOF
                    @Echo Existing romdata folder(s) have been renamed. See
                    @Echo the start of this window for further details.
                    @Echo ************************************************** ********
                    @Echo.

                    :EOF
                    @pause

                    ---------------------------------8<----------------------------------------------------------------------------
                    Last edited by NeoMatrix; 08-16-2016, 05:17 AM.
                    Inauguration to the "AI cancel-culture" fraternity 1997...
                    •••••• •••[§]• |N | € | o | M | Δ | t | π | ¡ | x | •[§]••• ••••••

                    Comment

                    Working...