I have done the following coding that is
i want to open a folder which is on desktop. well the position of the folder can change ( i mean it can be on right side, or left side or top or bottom on the Desktop)
you can see in the properties window what all changes i have done… Well its opening the folder after opening every time i am getting the error for the selector -
@nadim.warsi
actually there is one folder by name - Unzip- inside this there are some folders
example: abca1, zxyx1,bbbzz1 etc {there can be 1 folder or there can be N number of folders in size “Unzip”}
these all above folders are having .pdf files only
Main thing is i have to open the folder Unzip and then open the other folders like - abca1
from the PDFSam software- double click/open the folder abca1 – {NOTE : the folder name can be anything how shall i make the BOT to click on the folders whose name are different every time ??? }
Another the main thing is when i click on Add button in the PDFSam then it should always
and always 1st select .pdf file that starts with{YKUL} out of many .pdf files in the folder abca1…
The same process should be followed for other all folders too… I think i have to loop through
If you just want to open application explorer.exe you can use start application and give this “explorer.exe” along with path you don not need to provide any selector at all
I have to do all the following things… I have tried to explain as much as i can…
Open the folder then select all the folders one by one…
ex: select Parent folder - AAAA
then select child folders inside it a1, b1 ,c1 one by one… The folder names can be anything…i have just given the example
Got it, just use ```
var directories = Directory.GetDirectories(“your_unzip_directory_path”) this will return you all your sub directory in the form of array,
Then loop each directory and use Directory.GetFiles you will get list of files as array then you can filter file.extention =PDF and continue
“Start Application” - no there is no activity by this name.
But start Process - is there in uipath.
I hvve added the start process - and gave the path - its opening the folder and then its throwing the error - “Start process : Application could not be opened”,
i have tried what ever you mentioned … So i am getting all the sub folders which r inside the Parent folder.
Once i get these SUB folders. I have to click on each SUB folder one by one…
How shall i click on each folder one by one… In the click activity i am not able to find how to do it… But i have to click so i have used the - Click activity…
Please find the screen shot of the work i did.
In my application i have to click on - Add
Add opens the following window…
so now i have to click on each folder , which r present inside the Unzip , as in above screenshot.
after click the folder it opens the files present inside each folder. The folder consists of the following files
Now i have to click the file that is starting with - “MYKUL” – this should be selected 1st and then other all files should be selected.
NOTE: the files starting string is - MYKUL- and its subsequent string can be anything ex: MYKUL 123, or MYKUL xyz…
I dont think you need to click.
Inside that ForEach, your item = one folder under Unzip (say Invoice_3296504)
So you use Directory.GetFiles(item, “MYKUL*.pdf”)
Then that file along with the path you can pass to your pdfsam application add option pop-up where it asks for you to select the file you want to add type into the File name text box the whole path variable
You mean to say i have to get file name- and pass the entire Path of the file to the screenshot u indicated.
but i have to select other all files too…
Only thing is i have to make sure this MYKUL – file sits on Top.