Jump to content
UBot Underground

Need Litte Tool Programmed Quickly


Recommended Posts

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 folder

2) I specify the number of copies, eg 10

3) I press start button

4) 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!

 

 

Link to post
Share on other sites

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)
    }
}
  • Like 2
Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...