How to get Document Path and File name in dotNet UiPath RPA

Get File Paths:
 

Directory.GetFiles Method Returns the names of files that meet specified criteria.

GetFiles(String) Returns the names of files (including their paths) in the specified directory.

Use:
Directory.GetFiles("Parent Folder/Documents Folder")

assign01


Get File Names:

Path.GetFileName Method Returns the file name and extension of the specified path string.

Use:
System.IO.Path.GetFileName(path.ToString)

 

assign02

← Back to Home

Comments

Post a Comment