Scenario:

Let's look at the following example:

I would like to know the directory is exist in my system or not.

The following steps would help you:

1. Goto the Component Toolbox panel, click  before Utilities.

2. On the Utilities category drop-down menu, click Directory component.

3. From Directory submenu, drag DirectoryExists subcomponent onto the Designer Surface.

4. Goto the Component Toolbox panel, click  before General.

5. From General drop-down menu, drag MessageBox component onto the Designer Surface.

6. Double-click directoryPath and enter the path of the file.

7. Connect the input/output ports between the components right from start to stop components.

8. Connect the data ports of Directory and MessageBox components.                     

9. Press F5 key to run the activity.

The output would be: