Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

I've got two seperate directories on the same server.

 

ValidPath = "\\imgnas1\vol1\TESTVOL\VOL01238\IMAGEVOL\2003091600603"

 

&

 

ValidPath = "\\imgnas1\vol1\imagevol\vol01238\imagevol\2003091600603"

 

The only difference is on the "imagevol" dir I have read and execute permissions whereas "testvol" I have all permissions. I'm getting an accessed denied when I execute this line of code:

 

Dim dirs As String() = Directory.GetFiles(ValidPath, "*.*")

 

The directory that I'm getting the error on is the "testvol" directory; the one I have full permissions to!! The other directory works fine. Can anyone point me in the right direction on where to go to debug this and figure out why I can't perform a simple getfiles command?

 

Thanks in advance

Ben

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...