c# - The directory name is invalid -
Why am I getting this error? I am using the correct path.
<
> Solution: You need to provide the path to the
directory to get all the files in the directory given on your search pattern. / P> From MSDN:
Returns the names of files (including their path) that match the specified search pattern in the specified directory.
Try this:
string directoryname = path. Gate directory name (E. falpath); Foreach (The string file name in the directory .gatefiles (directory name, "* .psps")) {// your code here}
Comments
Post a Comment