C# 共享目录如何登录
NASUser:共享目录用户名
NASPwd:共享目录用户的密码
NASPath:共享目录路径
IsNAS:true
//*********************************************************
bool isNas = true;
if (isNas)
{
string strNasPath = “\192.168.1.53\public”;
string strNasUser = “admin”;
string strNasPwd = “admin”;
try
{
if (!connectState(strNasPath, strNasUser, strNasPwd))
{
Console.WriteLine("Read net folder error.");
Console.ReadLine();
return;
}
}
catch (Exception ex)
{
Console.WriteLine(ex.Message);
Console.ReadLine();
return;
}
}
幸福是一件礼物,得到它的秘诀是不怀期待,只在它来的时候尽情享受