How to get the name of folder which selcted

studio

#1

Hi,
I want to get the name of folder which is randomly chosen at run time, folder will be selected at run time.
here I am not aware of position, sequence and folder name.
just need to store the folder name which is selected at runtime.
anyone can you please let me know.

#folder #UiPath #studio


#2

How is this folder name chosen and which variable it is stored in ? if you are storing the folder / file in proper varibale types eg “System.Io.File” or “System.IO.Directory” you would be able to retrive the path file name etc from the variables methods …


#3

Another was could be:
You can get the selector of the element while selecting the folder.
Here attribute “ctrl name” will give the folder name.

Please let me know in case of any query.


#4

thanku Madhavi, I will try and let you know


#5

Hey Madhavi,
case is :
in citrix environment , type into the name to reach that folder and save/fetch/get the name of that folder .


#6

click trigger cant be used, as position is not fixed


#7

Hello Krishna,
I have used type into activity , gave folder name “xyz”
Now I want to save the name of selected folder(whichever folder is selected)


#8

are you in citrix environment ? Can you share your workflow , or similar example … i will have a look …


#9

Hi Krishna,

I am working on citrix environment and cant share clients workflow.

But if I am typing the name of folder , has it reached to correct folder, to validate that I want to compare the selected folder ui elements with the input I provided.

Regards

Mansi Choubey


#10

Hi @Mansi08

You can do something like this , it will fetch the path of the folder selected.


#11

@sai.kiran :slight_smile: that’s not the scenario.
in citrix environment , scrape a folder name which is selected.


#12

is the folder open in Windows Explorer ? if yes , then you can click on the path and use Text scraping to get the full path …


#13

in citrix environment , desktop application, after right clicking no properties tab.


#14

For that you can scrape the particular element …

if this is not what you are looking for , could you give me some more details on your exact senario ? with some screenshots maybe ?


#15

@sai.kiran, I repeat I want to scrape the selected area in citrix


#16

instead of get text you can use any scraping means to get that data , it should be straight forward from here on … what is the issue you are facing ?