如何写在局域网里访问共享文件夹(必须用户名及密码)?
我现在只能先映射这个共享文件夹,然后再//182.22.68.34/共享文件夹,我想直接就把用户名及密码写在程序里,该怎么写? 
 但用ftp   可以访问服务器,@ "ftp://user:pwd@182.22.67.3/共享文件夹,但直接访问该怎么写?
------解决方案--------------------试一下 net use 命令
------解决方案--------------------Process p; 
             p = new Process(); 
             p.StartInfo.FileName =  "cmd.exe ";   
             p.StartInfo.UseShellExecute = false; 
             p.StartInfo.RedirectStandardInput = true; 
             p.StartInfo.RedirectStandardOutput = true; 
             p.StartInfo.CreateNoWindow = true;   
             p.Start(); 
             p.StandardInput.WriteLine(@ "net use \\serverip\sharename password /user:username "); 
             p.StandardInput.WriteLine( "exit "); 
             p.WaitForExit(); 
             string s = p.StandardOutput.ReadToEnd(); 
             p.Close();