c# - The directory name is invalid -


Why am I getting this error? I am using the correct path.

The name of the directory is invalid

<

> 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

Popular posts from this blog

sonata admin - how to add ManyToOne property field in configureListfield in sonataAdmin -

wpf - ControlTemplate with changes for every class -

python - how we can use ajax() in views.py in django? -