How to choose where to place my new created folder instead of it creating in my file containing the UiPath proccess file as its default
Hello @superpunchypp
Assign
To=“[String_Variable_to_Store_Folder_Path]”
Value=“C:\Your\Custom\Path”
CreateDirectory
Directory=“[String_Variable_to_Store_Folder_Path]\NewFolder”
Thanks & Cheers!!!
Hi @superpunchypp ,
You can call the big folder first, then in the activity you can call it again
regards,
is it possible to show me in UiPath also using a message box to promt user to choose where to put this new folder in, thanks
you can use Browse for folder/file activities:
Hi @superpunchypp ,
Could you let us know what you mean by Choose folder location ? Do you want the user to chose their required intended folder location or do you already have a dedicated Folder location which would be constant always ?
For User to choose Folder Location, we could use Browse For Folder
activity, which lets us to chose the Folder Path, we can then get the value from its output. Then use it in Create Folder
activity.
could you explain the folder name part
Path.Combine
is used to combine the Strings mentioned in it together. More on it is in the documentation below :
We are using Two Strings to be combined :
- Selected Folder Path by user (
selectedFolderPath
variable) - Folder Name (
Folder to Create
was used directly, can be a string variable as well)
A more visual explanation could also be observed when performed Debugging. I believe we had already discussed on the same Method explanation.
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.