I followed the approache to map a network drive programmatically in the following link: Mapping Network Drive using C#
The drive seems to be connected correctly beca
If you are using @Mario's Approach 2 and want to keep the drive then remove the following line:
DoProcess("net", "use /D R:");