c# 获取相对路径,操作环境变量.
一、获取当前文件的路径
1. System.Diagnostics.Process.GetCurrentProcess().MainModule.FileName
// Get the current directory.
string path = Directory.GetCurrentDirectory();
获取模块的完整...
分类:
其他好文 时间:
2014-06-10 15:07:12
阅读次数:
288
MySQL命令行导出数据库:1,进入MySQL目录下的bin文件夹:cd
MySQL中到bin文件夹的目录如我输入的命令行:cd C:\Program Files\MySQL\MySQL Server
4.1\bin(或者直接将windows的环境变量path中添加该目录)2,导出数据库:mysql...
分类:
数据库 时间:
2014-06-10 14:08:39
阅读次数:
348
select DISTINCT msi.segment1成品编码
,msi.description 成品描述 ,msi.item_type 物料类型,msi.inventory_item_status_code 状态
,msi.build_in_wip_flag 允许制造from INV.MTL_S...
分类:
数据库 时间:
2014-06-10 13:22:08
阅读次数:
320
题目:Maximum Depth of Binary TreeGiven a binary tree,
find its maximum depth.The maximum depth is the number of nodes along the
longest path from the ro...
分类:
其他好文 时间:
2014-06-10 10:09:13
阅读次数:
237
1:创建一个web项目或者java项目
2:找到hibernate包lib目录下面的required下面的包把包放到lib目录下面,在导入buidler path里面
3:写java类,我写的java bean类,代码如下:
package org.hibernate.domain;
import java.util.Date;
public class Event {
privat...
分类:
系统相关 时间:
2014-06-10 06:45:05
阅读次数:
343
I/O 1.文件操作:File(1)voidAppendAllText(string
path, string contents)(2)boolExists(string path)(3)string[]Read...
分类:
其他好文 时间:
2014-06-10 00:58:28
阅读次数:
535
今天使用ant脚本编译程序,发现编译没通过,因为配置的
bin目录不存在,eclipse默认的工程的编译路径是/build/classes下,如何修改呢?看图:
分类:
系统相关 时间:
2014-06-09 19:16:29
阅读次数:
214
原题地址:https://oj.leetcode.com/problems/simplify-path/题意:Given
an absolute path for a file (Unix-style), simplify it.For example,path="/home/",
=>"/home...
分类:
编程语言 时间:
2014-06-09 19:13:54
阅读次数:
181
VS 2103 +
opencv2.4.9配置过程1、下载opencv2.4.9,然后解压到一个位置设置opencv
SDK解压目录,点击Extract后解压我是习惯于解压到这个位置的。解压过程如上图。2、文件目录介绍解压后会在目录下生成opencv的文件夹在opencv文件夹下有build和sou...
分类:
其他好文 时间:
2014-06-09 16:46:03
阅读次数:
279
path=C:\Qt\Qt5.3.0\5.3\mingw482_32\bin;C:\Qt\Qt5.3.0\Tools\mingw482_32\bin;%path%增加:QT_PLUGIN_PATH
C:\Qt\qwt-6.1.0\plugins QTDIR C:\Qt\Qt5.3....
分类:
其他好文 时间:
2014-06-09 16:44:47
阅读次数:
346