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

c - Mpirun hangs when mpi send and recieve is put in a loop -

python - Apply coupon to a customer's subscription based on non-stripe related actions on the site -

java - Unable to get JDBC connection in Spring application to MySQL -