Directory Enumeration on a Network share

  • Thread starter Thread starter irfan saeed
  • Start date Start date
I

irfan saeed

How can i traverse through the direcotries sitting on a Network share. i
used directoryInfo object, but somehow it does not work on UNC paths.
any kind of assistance is appretiated.

Irfan
 
Hello

The DirectoryInfo object should work fine even with UNC path.
May be you are running the program itself from a Network Share. If this is
the case, either run the problem from local machine where it runs with
fulltrust or change the .Net framework policy to allow your program to run.

Best regards
Sherif
 
How can i traverse through the direcotries sitting on a Network share. i
used directoryInfo object, but somehow it does not work on UNC paths.
any kind of assistance is appretiated.

Irfan

If I remember correctly, you can take the UNC path and replace the start of
it with [computername]\c$\[retsOfPath] at least something like that. I'm
not sure, but in this case I remember someone solving it with a C$
somewhere at the beginning..
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top