11 2017 档案
摘要:直接打开指定的文件 System.Diagnostics.Process.Start(v_OpenFilePath); 直接打开目录 string v_OpenFolderPath = @"目录路径"; System.Diagnostics.Process.Start("explorer.exe", v_OpenFolderPath); 在WinForm/C#中打开一个文件,主要是...
阅读全文
摘要:using System; using System.Data; using System.Configuration; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.WebControls; using System.Web.UI.WebCo...
阅读全文
摘要:FileInfo fi = new FileInfo(fullfile);//fullfile文件路径 ong Size = fi.Length;//查看已下载文件的大小 C# 获取文件名及扩展名 string aFirstName = aFile.Substring(aFile.LastIndexOf("\\") + 1, (aFile.LastIndexOf(".") - aFile....
阅读全文
摘要:string remoteUri = System.IO.Path.GetDirectoryName(url); string fileName = System.IO.Path.GetFileName(url); string myStringWebResource = null; WebClient myWebClient = new WebClient(); myStringWebReso...
阅读全文

浙公网安备 33010602011771号