摘要: 直接打开指定的文件 System.Diagnostics.Process.Start(v_OpenFilePath); 直接打开目录 string v_OpenFolderPath = @"目录路径"; System.Diagnostics.Process.Start("explorer.exe", v_OpenFolderPath); 在WinForm/C#中打开一个文件,主要是... 阅读全文
posted @ 2017-11-03 13:58 你只管努力 阅读(5048) 评论(0) 推荐(0) 编辑
摘要: 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... 阅读全文
posted @ 2017-11-03 13:47 你只管努力 阅读(4397) 评论(0) 推荐(0) 编辑
摘要: FileInfo fi = new FileInfo(fullfile);//fullfile文件路径 ong Size = fi.Length;//查看已下载文件的大小 C# 获取文件名及扩展名 string aFirstName = aFile.Substring(aFile.LastIndexOf("\\") + 1, (aFile.LastIndexOf(".") - aFile.... 阅读全文
posted @ 2017-11-03 13:40 你只管努力 阅读(1017) 评论(0) 推荐(0) 编辑
摘要: string remoteUri = System.IO.Path.GetDirectoryName(url); string fileName = System.IO.Path.GetFileName(url); string myStringWebResource = null; WebClient myWebClient = new WebClient(); myStringWebReso... 阅读全文
posted @ 2017-11-03 13:37 你只管努力 阅读(2454) 评论(0) 推荐(0) 编辑