-
Delete files with script or allow after effects to overwrite previous copy automatically
Hi everyone,
Got a problem.It there any way to delete files with script outside AE or stop AE promting ifit can overwrite previous copy?
My way
//create new folder
var SaveTo = "H:/desktop/folder/"
var SaveFolder = new Folder(SaveTo);
SaveFolder.create();//create bat file
var exe_shutoff = new File(SaveTo + "shutoff.bat");
exe_shutoff.open("w");
exe_shutoff.writeln("del render.avi");
exe_shutoff.close();
exe_shutoff.execute();
When I run this script from AE it creates *.bat file but doesn’t run it.
If i run it from windows – it successfully deletes itself.
Or maybe there is any way to do this with “system.callSystem” method?
Director of animation and CG