Run a file from password protected rar

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • nals
    Forum Member
    • Feb 2007
    • 206

    Run a file from password protected rar

    Is this possible?

    I want to run a password protected rar file or a zip from inside the project.?

    If yes sample code will be great !

    Thanks
  • jackdaniels
    No longer a forum member
    • Mar 2007
    • 533

    #2
    i think this is what u need

    Comment

    • Esfahan
      Forum Member
      • Oct 2007
      • 233

      #3
      AMS not supported *.rar file, But for zip file is existed u need exactly .

      Comment

      • nals
        Forum Member
        • Feb 2007
        • 206

        #4
        jackdaniels Thanks for your reply, I try to do with you sample link, but thats from a list box, i need to ope a file and run the file.


        Can someone please help me with this code please.

        I m Confused
        Attached Files
        Last edited by nals; 04-21-2008, 04:15 PM.

        Comment

        • RizlaUK
          Indigo Rose Customer
          • May 2006
          • 5552

          #5
          use zip actions to unzip the file to a temp folder and use file.run to run the file
          Embrace change in your life, you never know, it could all work out for the best

          Comment

          • nals
            Forum Member
            • Feb 2007
            • 206

            #6
            PHP Code:
            Zip.Extract("AutoPlay\\Docs\\test.dat", {sFile}, sTempDirectoryfalse,    false"pass"0nil);
                
            File.Run("I_file"sTempDirectory .. sFile);

            File.Delete(sTempDirectory .. sFilefalsefalsefalsenil); 

            Is this wrong?

            Comment

            • RizlaUK
              Indigo Rose Customer
              • May 2006
              • 5552

              #7
              whats (I_file), is that a variable ?

              if so remove the double quotes
              Embrace change in your life, you never know, it could all work out for the best

              Comment

              • nals
                Forum Member
                • Feb 2007
                • 206

                #8
                RizlaUk


                This to exract the zip file to temp folder correct?

                -- _TempFolder, however you can choose whatever directory you like)
                sTempDirectory = _TempFolder .. "\\";

                -- Extract to the temp directory- test.dat is the zip change to .dat and pass = pass
                Zip.Extract("AutoPlay\\Docs\\test.dat",{sFile} , sTempDirectory, false, false, "pass", 0, nil);
                and how do I run the exracted zip file from the temp folder ??

                Comment

                • RizlaUK
                  Indigo Rose Customer
                  • May 2006
                  • 5552

                  #9
                  try this

                  Code:
                  -- _TempFolder, however you can choose whatever directory you like)
                  sTempDirectory = _TempFolder .. "\\";
                  -- Extract to the temp directory- test.dat is the zip change to .dat and pass = pass
                  Zip.Extract("AutoPlay\\Docs\\test.dat",{sFile} , sTempDirectory.."MyProg.exe", false, false, "pass", 0, nil);
                  -- Run the file from the temp filder
                  result = File.Run(sTempDirectory.."MyProg.exe", "", "", SW_SHOWNORMAL, false);
                  Embrace change in your life, you never know, it could all work out for the best

                  Comment

                  • nals
                    Forum Member
                    • Feb 2007
                    • 206

                    #10
                    RizlaUK

                    Did try that but no luck :(

                    Comment

                    • nals
                      Forum Member
                      • Feb 2007
                      • 206

                      #11
                      Please help me someone.

                      Comment

                      Working...
                      X