Hi All, I want something where user can put input no. And create a multiple copies of that files.
For example i have one file name of “test1.html”. and i want to copy it multiple time according to the input give by user like if i entered 15 so it will copy 15time same file with sequence no. test1 test2 test3… so on
Yess @Pramod_Sharma… I think you can achieve this by using O/P variable of Input Dialogue box, While loop and Copy File activities.
To give you a starter you can do like this:
- Get the input value form the user store that value in variable(InputVar Int 32 type).
- Use that variable in the while loop with condition Itr <= InputVar.
- With copy file activity use the this expression in the destination filed: “test”+Itr.ToString+".html"
- Finally increment the Itr value.
Hope this make some sense to start your workflow.
Cheers!
Ok let me try these… Thanks for the help…
@Pramod_Sharma - Please find some starter help here…
For Each : Enumerable.Range(1,IntNooftimes) - This will loop 1 to UserInputTimes…
I have used Index which comes along with For Each, if you use this then you dont have additional variable to increment . this you can use it as Counter. But note, Idx always starts with 0.
Copy File --> To --> “OutputPath” + path.GetFileNameWithoutExtension(“InputFilePath”) + (idx+1).ToString + path.GetExtension(“InputFilePath”)…
Output
I have entered 3…
Thank u sir let me try this on Monday in a live project…