View Single Post
  #1550  
Old 20.10.2020, 19:11
mgpai mgpai is offline
Script Master
 
Join Date: Sep 2013
Posts: 1,533
Default

Quote:
Originally Posted by Artex View Post
I think I was unclear
I have created the script based on the example you provided, in which the destination folder is not a sub-folder of the source folder, but an entirely different one.

Try replacing this:
Code:
var newFolder = downloadFolder.replace("C:\\Downloads", "C:\\myFolder\\MovedFiles"); // case-sensitive

with this:
Code:
var newFolder = downloadFolder.split("F:\\!Downloads\\JDownloader2\\").join("F:\\!Downloads\\JDownloader2\\_COMPLETE\\");// case-sensitive
Reply With Quote