accessing hidden network drive

Oct 3 2008 2:37 PM

Hello:

I have a shared resource in the server, that contains data. In client side, I have a winform application that must connect to this resource (using for example P:\). The problem is that I need the user phisically cannot access to this resource and view files, but the client application yes.

I've tried giving access to this resource to a especific domain user (user only to access to this resource), and using domain/username and password from c# to create this network  drive, but i receive errors.

Am I doing it in correct way? Any alternative?

Thanks and regards