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?