2 Replies Latest reply on Dec 27, 2017 4:55 AM by natrev

    Help needed - Command line execution script is not working?

    natrev Level 3

      Hi Everyone,

       

      I try to update string value to registry but this script is not working. Please anyone help me to solve this problem.

       

      try{
         var BAT = new File(Folder.temp + "/UpdateCMD.bat");
         BAT.open("w");
         //BAT.writeln('reg add HKEY_CURRENT_USER\SOFTWARE\Adobe\CSXS.7 /t REG_SZ /v PlayerDebugMode /d 1 /f');   
         BAT.writeln('reg add HKEY_CURRENT_USER\SOFTWARE\Adobe\CSXS.8 /t REG_SZ /v PlayerDebugMode /d 1 /f');   
         BAT.close();
         BAT.execute();   // execute the temp bat file   
      }catch(e){
          alert("Bat UpdateCMD failed to execute.");
      };
      

       

       

      -yajiv