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")
Get File Names:
Path.GetFileName Method Returns the file name and extension of the specified path string.
Use:
System.IO.Path.GetFileName(path.ToString)
Comments
Post a Comment