Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: How to run a batch file inside a zip archive from a batch file?  (Read 31194 times)

0 Members and 2 Guests are viewing this topic.

papayrus

    Topic Starter


    Rookie

    How to run a batch file inside a zip archive from a batch file?
    « on: November 22, 2009, 07:54:40 PM »
    Anyone know how to do this?

    gh0std0g74



      Apprentice

      Thanked: 37
      Re: How to run a batch file inside a zip archive from a batch file?
      « Reply #1 on: November 22, 2009, 08:52:39 PM »
      what are you trying to do ?

      Salmon Trout

      • Guest
      Re: How to run a batch file inside a zip archive from a batch file?
      « Reply #2 on: November 23, 2009, 12:28:40 AM »
      I don't like the sound of this.

      Helpmeh



        Guru

      • Roar.
      • Thanked: 123
        • Yes
        • Yes
      • Computer: Specs
      • Experience: Familiar
      • OS: Windows 8
      Re: How to run a batch file inside a zip archive from a batch file?
      « Reply #3 on: November 23, 2009, 04:05:25 AM »
      Doesn't sound "iffy" to me...Although it doesn't matter, as I don't know how either.
      Where's MagicSpeed?
      Quote from: 'matt'
      He's playing a game called IRL. Great graphics, *censored* gameplay.

      Salmon Trout

      • Guest
      Re: How to run a batch file inside a zip archive from a batch file?
      « Reply #4 on: November 23, 2009, 04:15:33 AM »
      If a batch file exists in a zip archive, and nowhere else, you cannot run it without first extracting it.

      papayrus

        Topic Starter


        Rookie

        Re: How to run a batch file inside a zip archive from a batch file?
        « Reply #5 on: November 23, 2009, 01:51:54 PM »
        Anyone know how to do this?


        What I am doing is making a program that installs font to change the font in a game I play. Problem is I made 20 different batch files with 20 reg files to go with it and 20 proxy files to go with it. What I am trying to achieve is packing all those files into a zip file to make the program smaller and to make it more organized while still being able to launch them from a batch file outside the zip archive.  I use a batch file to offer choices of what font to choose then when you choose the number the font corresponds to it launches the proxy file that in return launches the batch file without a dos box and in return the batch file launches the reg file in silent mode.

        Each batch file adds this registry entry cause it's needed to make the font show in the game.

        Windows Registry Editor Version 5.00

        [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\FontSubstitutes]
        "±¼¸²Ã¼"="Ariel"


        Thats the code and when I want to change font I use a batch file that will basically change the font name such as Ariel will get changed to Candara in the registry if I hit the number 2 key and enter.
        Also another problem I have is that anytime I change the font I have to reboot my computer before it shows in the game does anyone know a way that I can avoid the need to reboot before I can see my font in the game.
        « Last Edit: November 23, 2009, 02:03:56 PM by papayrus »

        Salmon Trout

        • Guest
        Re: How to run a batch file inside a zip archive from a batch file?
        « Reply #6 on: November 23, 2009, 01:54:22 PM »

        I know it's only been a day but does anyone know how to run a batch file that is inside a zip archive from a batch file that is not inside a zip archive?

        You got the answer above, already. Can you read?

        papayrus

          Topic Starter


          Rookie

          Re: How to run a batch file inside a zip archive from a batch file?
          « Reply #7 on: November 23, 2009, 02:07:02 PM »
          Ahahaha I was in the wrong place I didnt realise so many people responded.
          OK so theres no way to to do that. Anyway I can make this more organised and get my font to show in game without having to reboot?
          I can send the whole program to you if you can take a look at it and see what I'm trying to accomplish.
          Basically it's just a side project for fun since I'm trying to learn coding and actionscript 3 which is a different subject cause I'm having problems with that as well using swf studio ssCore to install the same registry key I cant get it to do anything but thats off the topic of the batch file version.

          Salmon Trout

          • Guest
          Re: How to run a batch file inside a zip archive from a batch file?
          « Reply #8 on: November 23, 2009, 02:26:39 PM »
          Your project sounds distinctly virus like, modding the registry silently, etc.

          papayrus

            Topic Starter


            Rookie

            Re: How to run a batch file inside a zip archive from a batch file?
            « Reply #9 on: November 23, 2009, 02:32:47 PM »
            Um I dont waste my time making viruses. If you read the post I tell you exactly what I'm doing.
            Anyway I'll check back tommorrow got to go for now thanks.
            « Last Edit: November 23, 2009, 03:01:49 PM by papayrus »

            Salmon Trout

            • Guest
            Re: How to run a batch file inside a zip archive from a batch file?
            « Reply #10 on: November 23, 2009, 03:35:26 PM »
            I don't know if I buy this game story.

            papayrus

              Topic Starter


              Rookie

              Re: How to run a batch file inside a zip archive from a batch file?
              « Reply #11 on: November 23, 2009, 07:50:12 PM »
              Hmmmm Here.s the code of the main file.

              Not complete yet

              @echo off
              COLOR 0b

              echo _______________________________________ _______________________________________ __
              echo 1 = Ariel        3 = Myriad Pro   
              echo 2 = Candara      4 = Algerian
              echo _______________________________________ _______________________________________ __
              echo Please choose a number from the list above that corresponds to the font you want to use for example enter the number 1 if you would like to use Ariel!!
              echo _______________________________________ _______________________________________ __
              echo If you wish to restore your original system font press the R KEY now then press enter.
              echo _______________________________________ _______________________________________ __

              set input=
              set /p input=Enter Your Option
              if %input%==1 goto 1
              if %input%==2 goto 2
              if %input%==3 goto 3
              if %input%==4 goto 4
              if %input%==5 goto 5
              if %input%==6 goto 6
              if %input%==7 goto 7
              if %input%==r goto 8




              :1
              cls
              echo _______________________________________ _______________________________________ __
              echo Added the registry key HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\FontSubstitutes]"±¼¸²Ã¼"="Ariel"
              start "" Ariel.bat
              goto :0




              :2
              cls
              echo _______________________________________ _______________________________________ __
              echo Added the registry key HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\FontSubstitutes]"±¼¸²Ã¼"="Cardana"
              start "" Candara.exe
              goto :0


              :3
              cls
              echo _______________________________________ _______________________________________ __
              echo Added the registry key HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\FontSubstitutes]"±¼¸²Ã¼"="Myriad Pro"
              start "" MyriadPro.bat
              goto :0


              :4
              cls
              echo _______________________________________ _______________________________________ __
              echo Added the registry key HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\FontSubstitutes]"±¼¸²Ã¼"="Algerian"
              start "" Algerian.bat
              goto :0








              :8
              cls
              echo _______________________________________ _______________________________________ __
              echo Deleted the registry key HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\FontSubstitutes]"±¼¸²Ã¼"="Your Font"
              start "" RestoreFont.bat
              goto :100




              :0
              echo _______________________________________ _______________________________________ __
              echo You must restart your computer for the font to work in RF Online.
              echo _______________________________________ _______________________________________ __
              echo Y = Yep restart so I can enjoy my new font.

              echo N = Nope I'll restart later cause I'm downloading porn.
              echo _______________________________________ _______________________________________ __

              set input=
              set /p input=Enter your Option
              if %input%==y goto y
              if %input%==n goto n

              :y
              shutdown -r -t 00 -c "DELETING YOUR *censored* PLEASE BE PATIENT"

              :n
              exit





              :100
              echo _______________________________________ _______________________________________ __
              echo Your font has been restored. You must restart your computer for the changes to take effect.
              echo _______________________________________ _______________________________________ __
              echo Y = Yep restart so my font is restored.

              echo N = Nope I'll restart later cause I'm downloading porn.
              echo _______________________________________ _______________________________________ __

              set input=
              set /p input=Enter your Option
              if %input%==y goto y
              if %input%==n goto n

              :y
              shutdown -r -t 00

              :n
              exit



              And heres the code of the batch file for the fonts

              regedit.exe /s Ariel.reg
              exit



              And heres the reg file code

              Windows Registry Editor Version 5.00

              [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\FontSubstitutes]
              "±¼¸²Ã¼"="Ariel"


              Basically thats what I'm trying to accomplish and running in silent mode just makes it more professional quality. It's a simple registy change that makes the font change in the game I am playing on my own computer. The weird looking ±¼¸²Ã¼ comes from the games own font.ini file thats the name in the file.

              [FONT]
              NAME = "±¼¸²Ã¼"

              If you dont understand that then please just let it go for someone else who might understand it.

















              Helpmeh



                Guru

              • Roar.
              • Thanked: 123
                • Yes
                • Yes
              • Computer: Specs
              • Experience: Familiar
              • OS: Windows 8
              Re: How to run a batch file inside a zip archive from a batch file?
              « Reply #12 on: November 23, 2009, 08:00:40 PM »
              Quote
              shutdown -r -t 00 -c "DELETING YOUR *censored* PLEASE BE PATIENT"
              this worries me.
              Where's MagicSpeed?
              Quote from: 'matt'
              He's playing a game called IRL. Great graphics, *censored* gameplay.

              BC_Programmer


                Mastermind
              • Typing is no substitute for thinking.
              • Thanked: 1140
                • Yes
                • Yes
                • BC-Programming.com
              • Certifications: List
              • Computer: Specs
              • Experience: Beginner
              • OS: Windows 11
              Re: How to run a batch file inside a zip archive from a batch file?
              « Reply #13 on: November 23, 2009, 09:24:45 PM »
              I love all this, hey, the font name is in the INI file, but instead of simply you know, doing the obvious thing and changing the INI file, let's define a new font substitute!

              This is the POINT of INI Files. Why not change the INI file, or is this entire solution derived simply to make it possible to change the font EASILY via the registry? It IS possible to change a INI file via Batch.
              I was trying to dereference Null Pointers before it was cool.

              Salmon Trout

              • Guest
              Re: How to run a batch file inside a zip archive from a batch file?
              « Reply #14 on: November 24, 2009, 12:17:51 AM »
              Quote
              Posted by: Helpmeh      Posted on: Today at 03:00:40 AM
              Insert Quote
              Quote
              shutdown -r -t 00 -c "DELETING YOUR *censored* PLEASE BE PATIENT"
              this worries me.

              THis whole thing stinks of prank or worse, like I said before.

              And the cheeky little sod dares to patronize his betters:

              Quote
              If you dont understand that then please just let it go for someone else who might understand it.