File Access on Remote Computers
-
Hi! I'm looking for an example on how to program file access on remote computers. I know the path (share), filename, the username and password on the remote computer, but I don't know how to program the access control. I saw a post in another forum on the internet where someone suggested to use the NET USE command. To me, that doesn't look like the ultimate solution. I read somewhere about Generic prinipals? But there are no examples whatsoever on how to do it?! Does anyone have any experience with that? Regards Mats
-
Hi! I'm looking for an example on how to program file access on remote computers. I know the path (share), filename, the username and password on the remote computer, but I don't know how to program the access control. I saw a post in another forum on the internet where someone suggested to use the NET USE command. To me, that doesn't look like the ultimate solution. I read somewhere about Generic prinipals? But there are no examples whatsoever on how to do it?! Does anyone have any experience with that? Regards Mats
net use G: \\host\path password /user:username http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/net\_use.mspx?mfr=true or In an explorer window, click Tools and Map Network Drive. You can then put in the details there.
-
net use G: \\host\path password /user:username http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/net\_use.mspx?mfr=true or In an explorer window, click Tools and Map Network Drive. You can then put in the details there.
I think that this is not the way to do it. I need code examples (C#) on how to access files on a remote computer. Not just to map a network drive. There must be another "cleaner" method to do this. Or am I completely wrong here?