mnk
(mnk)
December 12, 2021, 8:57am
1
Hi,
I’m facing a problem in finding files in the Folder means, I don’t know whether in the Folder is their file or not . If there is any file in Folder then Message shows that the File exists or if the file does not present it show the file does not exist.
ThankYou
1 Like
Srini84
(Srinivas Kadamati)
December 12, 2021, 9:00am
2
@mnk
Try as below
Directory.GetFiles(“FolderPath”).count
This will list you the count of files
Hope this willhelp you
Thanks
Hi
Hope the below expression would help you resolve this
Use a IF activity like this
Directory.GetFiles(“yourfolderpath”).Count > 0
If it is greater than 0 then it goes to THEN part where use a message box with message as “File exists”
Or it goes to ELSE part where use a message box as “File doesn’t exists”
Cheers @mnk
mnk
(mnk)
December 12, 2021, 9:08am
4
@Palaniyappan Thanks for solution.
1 Like
Glad
Happy automation @mnk
system
(system)
Closed
December 15, 2021, 9:09am
6
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.