Quantcast
Channel: Adobe Community: Message List - Photoshop Scripting
Viewing all articles
Browse latest Browse all 27456

Re: Monitor a folder, run Dr Brown's "Image Processor Pro" script, and move original file

$
0
0

Thanks so much.  I assumed /Y would work with the delete command as well, but it doesn't seem to actually delete the file when I use it.  Should I be doing something else?

 

try{

 

   var BAT = new File(Folder.temp + "/MoveFilesToArchive.bat");

 

   BAT.open("w");

 

   BAT.writeln('Copy /Y "E:\\Temp only\\Image Sizing Tests\\Processing Folder\\*.*" "E:\\Temp only\\Image Sizing Tests\\Archive Folder\\*.*"');

 

   BAT.writeln('Del /Y "E:\\Temp only\\Image Sizing Tests\\Processing Folder\\*.*"');

 

   BAT.close();

 

   BAT.execute();   // execute the temp bat file

 

}catch(e){

 

alert("Bat MoveFilesToArchive  failed to execute.");

 

};


Viewing all articles
Browse latest Browse all 27456

Trending Articles



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