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

How to launch a batch file from an After Effects script?

$
0
0
Hello everyone,

 

my Os is Windows 7 Entreprise

 

I have written this A.E. script

 

var myFile= new File("C:/myBatch.bat");
myFile.execute();

 

When I double clic in my file browser on myBatch.bat, it opens cmd.exe and the batch is correctly executed

 

BUT, if I launch it from an After Effects script as written above, the command window opens and closes at once and nothing happens.

 

The script above works for any kind of applications (.doc, .xls,..) but not with .bat.  WHY?

 

Many thanks,

Viewing all articles
Browse latest Browse all 2143

Trending Articles



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