View Single Post
  #696  
Old 16.04.2019, 12:17
leanhdung leanhdung is offline
Ultra Loader
 
Join Date: Aug 2017
Location: Vietnam
Posts: 48
Default

Quote:
Originally Posted by mgpai View Post
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);
}
Dear @mgpai

My download link is
Code:
url#name=abc#pack=Pack 1
After each download is complete, I would like to move each file to the destination C:/Pack 1 where Pack 1 is extracted from the download link by the prefix
Code:
#pack=
.

Could you please modify your original script to satisfy my purpose?

Thank you so much!
Reply With Quote