View Single Post
  #1551  
Old 20.10.2020, 19:18
Artex Artex is offline
I will play nice!
 
Join Date: Oct 2020
Posts: 4
Default

Quote:
Originally Posted by mgpai View Post
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
This didn't seem to work either I'm afraid - it left the downloaded folder (and contents) in

F:\!Downloads\JDownloader2\MovieFolderName\Movie.mkv

And I would have expected it to go to:

F:\!Downloads\JDownloader2\_COMPLETE\MovieFolderName\Movie.mkv
Reply With Quote