问题描述
Func<string,string> Check_ReFs_Ver = x =>
{
Process Proc = new Process();
Proc.StartInfo.CreateNowindow = true;
Proc.StartInfo.UseShellExecute = false;
Proc.StartInfo.RedirectStandardOutput = true;
Proc.StartInfo.WindowStyle = ProcessWindowStyle.Hidden;
Proc.StartInfo.FileName = Environment.SystemDirectory + @"\cmd";
Proc.StartInfo.Arguments = Strings.Chr(32) + "/c " + Strings.Chr(32);
Proc.StartInfo.Arguments += Strings.Chr(34) + Path.Combine(Environment.SystemDirectory,"fsutil fsinfo refsinfo" + Strings.Chr(32) + x + ":") + Strings.Chr(34);
Proc.Start();
Proc.WaitForExit();
try
{
return Proc.StandardOutput.ReadToEnd().toupperInvariant().Split(new[] { Constants.vbCr,Constants.vbLf },StringSplitOptions.RemoveEmptyEntries).ToArray(1).Split(Strings.Chr(32)).LastOrDefault();
}
catch (IndexOutOfRangeException ex)
{
break;
}
return string.Empty;
};
string ReFs_Ver = Check_ReFs_Ver.Invoke("X"); // X - ReFs drive (if X is REFS drive return version [3.4] win2004inter)
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)