IWorkspaceFactory wsf = new ShapefileWorkspaceFactory();IWorkspace pWorkspace = wsf.Open(filePath, 0) ;//filePath为shapefile所在的文件夹IFeatureWorkspace pF....
分类:
其他好文 时间:
2015-01-10 12:38:35
阅读次数:
184
#region 数据库管理
///
/// 还原恢复数据库
///
/// 保存路径
///
public bool DataRestore(string FilePath)
{
string[] Connection = ConfigHelper.GetA...
分类:
数据库 时间:
2015-01-10 06:37:53
阅读次数:
194
在ruby中我们要实现遍历指定目录的方法,网上的方法也非常之多,我们可以拿来参考参考,如下边的traverse.rb文件内容所示:#!/usr/bin/ruby
deftraverse(filepath)
ifFile.directory?(filepath)
puts"Dirs:"+filepath
Dir.foreach(filepath)do|filename|
iffilename!="."andfil..
分类:
其他好文 时间:
2015-01-09 19:32:32
阅读次数:
133
string fileName="",filePath="";.....Response.Clear(); Response.Buffer = true;Response.AddHeader("Content-Disposition", "attachment;filename=" + fileNa...
分类:
其他好文 时间:
2015-01-09 13:58:56
阅读次数:
152
图片文件转为Bitmap对象String filePath="c:/01.jpg";Bitmap bitmap=BitmapFactory.decodeFile(filePath);如果图片过大,可能导致Bitmap对象装不下图片解决办法:String filePath="c:/01.jpg"; B...
分类:
其他好文 时间:
2015-01-06 01:58:52
阅读次数:
152
windows中如何设置文件只读或隐藏呢?(1)windows设置文件只读/***
*设置为只读
*@paramfilePath
*@return
*/
publicstaticintreadOnly(StringfilePath){
if(newFile(filePath).exists()){
Processp=CMDUtil.executeCmd("attrib"+filePath+"+R");
try{
p.waitFo..
分类:
编程语言 时间:
2015-01-05 16:50:22
阅读次数:
229
这个代码是在网上找的,自己进行了学习,入门级的吧从别的地方COPY了 一些OLE的属性和方法解释1.ole中如何保存和退出。 call method of sheetname 'saveas' exporting #1 = filepath #2 =1. call method of applica...
分类:
其他好文 时间:
2015-01-04 11:17:49
阅读次数:
293
net中导入2013excel的故障解决办法。修改导入excel的连接字符串string strCon = "Provider=Microsoft.ACE.OLEDB.12.0;Data Source=" + filepath + ";Extended Properties='Excel 12.0;...
分类:
Web程序 时间:
2015-01-01 16:03:48
阅读次数:
145
MVC下载文件方式方式一:public FileStreamResult DownFile(string filePath, string fileName){string absoluFilePath = Server.MapPath(System.Configuration.Configurat...
分类:
Web程序 时间:
2014-12-31 21:29:50
阅读次数:
189
public static void Download(String filePath) { File file = new File(filePath); renderBinary(file); }
分类:
其他好文 时间:
2014-12-31 18:05:15
阅读次数:
123