• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Help needed - Command line execution script is not working?

Engaged ,
Dec 26, 2017 Dec 26, 2017

Copy link to clipboard

Copied

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

TOPICS
Actions and scripting

Views

901

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

LEGEND , Dec 26, 2017 Dec 26, 2017

reg add HKEY_CURRENT_USER\\SOFTWARE\\Adobe\\CSXS.8 /t REG_SZ /v PlayerDebugMode /d 1 /f

Votes

Translate

Translate
Adobe
LEGEND ,
Dec 26, 2017 Dec 26, 2017

Copy link to clipboard

Copied

reg add HKEY_CURRENT_USER\\SOFTWARE\\Adobe\\CSXS.8 /t REG_SZ /v PlayerDebugMode /d 1 /f

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
Dec 27, 2017 Dec 27, 2017

Copy link to clipboard

Copied

LATEST

Hi Kukurykus,

It is working like a charm....

Thank you so much.

-yajiv

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines