Quantcast
Channel: Adobe Community : Discussion List - After Effects Scripting
Viewing all articles
Browse latest Browse all 2143

Executing .bat file using fileObj.execute () returing the result by completely deleting the Lines of code in extend script???

$
0
0

Hi guys

 

i have created a dynamic .bat file created inside java and it copies to a location and run thru fileObj.execute ();

Example

-------------------

 

var line1="some code";

var line2="some code";

var myCode= line1+line2;


var myFileC=new File

myFileC.open('w');

myFileC.write(myCode);

myFileC.copy("some location\file.bat");

myFileC.close();

 

//Execute .bat file

var batFile = new File("some location\file.bat); 

batFile.execute();

 

Now .bat file is successful executed but the contents of that bat file created is showing up in extend script by deleting all my above code..

i have to Undo it to get it back everytime i execute and sometime accidentally i saved it loosing all the code.

 

can someone help to solve this?


Viewing all articles
Browse latest Browse all 2143

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>