View Single Post
  #1553  
Old 21.10.2020, 06:59
mgpai mgpai is offline
Script Master
 
Join Date: Sep 2013
Posts: 1,415
Default

Quote:
Originally Posted by Artex View Post
This didn't seem to work either...
Should be working fine. Here is the script used for testing, which has the same folder settings provided in your example. Please note the source folder string is case-sensitive, as commented in the script.

Code:
/*
    Move downloaded non-archive files to user-specified folder
    Trigger: A Download Stopped
*/    

if (link.finished && !link.archive) {
    var downloadFolder = link.package.downloadFolder;
    var newFolder = downloadFolder.split("F:\\!Downloads\\JDownloader2\\").join("F:\\!Downloads\\JDownloader2\\_COMPLETE\\");// case-sensitive

    if (newFolder != downloadFolder) {
        getPath(link.downloadPath).moveTo(newFolder);
    }
}
Reply With Quote