Click here to Skip to main content
15,745,432 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:

I want to store the file in a another system's shared folder. I used the path but it is prompt for the username and password. I don't know how to give the username and password through the code. Is there any other way to save the file without giving the username and password. Here is the code:

private string GetPath()

       dirpath = @"\\ASTI5\Promise Folders\Attach Document";
       return dirpath;

Thanks in Advance

1 solution

Set FullControl in folder Permission Sharing properties...
Share this answer
Member 7946563 27-Aug-11 1:21am    
I have set the access permission to full control but it's not working

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900