I have one string var as hdfc i used assign to give path as Environment.ExpandEnvironmentVariables(“%USERPROFILE%\Downloads\HDFC”) also I already have folder as hdfc inside it sometimes I have file and sometimes wont.
so how to check if my folder contains files or no files.
Note: You can use above mentioned LinQ in If Activity directly, Output will be Boolean i.e, True Or False
In the above LinQ:
*.txt = Denotes the file extension, If you have any kind of specific file format then above query will be usefull, it will count only those files in the specified folder!