Tony5895 2 Posted September 7, 2019 Report Share Posted September 7, 2019 Hi I need a little tool programmed with Ubot, please let me know your pricing and when you can deliver. I also want the source code and I have full rights. 1) I specify the input folder2) I specify the number of copies, eg 103) I press start button4) Program takes all files in the specified folder and creates X duplicate versions of each file. So for example if the folder contains 5 files and I want 10 copies of each file then program creates 50 files. File naming is not important (eg just append a number to the existing file name or create a whole new file name). File extension must remain intact. Output folder is same as input folder. Thanks! Quote Link to post Share on other sites
HelloInsomnia 1103 Posted September 7, 2019 Report Share Posted September 7, 2019 I think it would take longer to figure out the details on pricing then it would to make something like this so try giving this a shot: ui button("Choose Folder") { set(#folder,$plugin function("File Management.dll", "$folder browser dialog"),"Global") } ui text box("Number of Copies",#numberOfCopies) if($comparison(#folder,"=",$nothing)) { then { alert("Choose a folder first") stop script } else { } } if($comparison(#numberOfCopies,"=",$nothing)) { then { alert("Specify a number of copies first") stop script } else { } } clear list(%files) add list to list(%files,$get files(#folder,"Yes"),"Delete","Global") loop($list total(%files)) { set(#file,$next list item(%files),"Global") set(#fileName,$plugin function("File Management.dll", "$filename without extension", #file),"Global") set(#fileExtension,$plugin function("File Management.dll", "$get extension", #file),"Global") set(#copyNumber,1,"Global") loop(#numberOfCopies) { set(#copiedFilePath,"{#folder}\\{#fileName}-{#copyNumber}{#fileExtension}","Global") shell("cmd /c copy \"{#file}\" \"{#copiedFilePath}\"") increment(#copyNumber) } } 2 Quote Link to post Share on other sites
Tony5895 2 Posted September 7, 2019 Author Report Share Posted September 7, 2019 I think it would take longer to figure out the details on pricing then it would to make something like this so try giving this a shot: haha thanks, will try it out today! Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.