View Single Post
  #29  
Old 25.01.2017, 06:46
mgpai mgpai is offline
Script Master
 
Join Date: Sep 2013
Posts: 519
Default

Quote:
Originally Posted by mrstimpy View Post
... script to move completed downloads to a new folder?
Code:
// Move finished non-archive files, to user defined folder
// Trigger required: "A Download Stopped"

var destFolder = "c:/myFolder/movedFiles"; // <- Set destination folder.

if (link.isFinished() && !link.getArchive()) {
    getPath(link.getDownloadPath()).moveTo(destFolder);
}
Reply With Quote