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

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

matlab - Using loops to get multiple values into a cell -

python - Sequence Pattern recognition with Pybrain -