原创 path、directory——文件操作常用的類

           Path             //只是改變了path字符串最後文件的擴展名,真正的文件類型沒有變             string path = @"c:\da\dd\a.txt";            

原创 徹底刪除oracle數據庫

 1.關閉oracle所有的服務。可以在windows的服務管理器中關閉;      2.打開註冊表:regedit 打開路徑:    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Service

原创 serialPort基本屬性與使用(串口)——C#

基本屬性: serialPort.PortName //可用的COM端口號 serialPort.BaudRate //波特率 serialPort.DataBits //數據位 serialPort.StopBits //停止位 ser

原创 字符串截取——c#

1、取字符串的前i個字符 (1)string str1=str.Substring(0,i); (2)string str1=str.Remove(i,str.Length-i); 2、去掉字符串的前i個字符 string

原创 oracle——從所有的dmp中只導出一個表的數據

首先把dmp文件放到C或其他盤的根目錄下: 運行: >  d: >  imp pub/pub@jnmes file=pub.dmp log=load.log TABLES=funinfo ignore = y

原创 oracle——DBLINK(數據庫間查詢)

有一個數據庫A,用戶爲a; 還有一個數據庫B,用戶爲b; 想要在登陸了A數據庫(conn a/a@A)的時候查詢B庫中的數據,則需要在兩個庫之間建立DBLINK,也就是由A通向B的連接: 1)create database link li

原创 oracle——LIKE使用

LIKE 模糊查詢     字符匹配操作可以使用通配符 “%” 和 “_”:     %:表示任意個字符,包括零個;     _:表示一個任意字符;       \     特殊字符 oracle10g以上支持正則表

原创 oracle——徹底刪除監聽

在oracle中刪除了監聽之後發現服務中仍然存在着監聽服務: 如:OracleOraDb10g_home1TNSListenerlistener1 刪除註冊表中的鍵值:cmd——regedit 主要是註冊表中的/HKEY_LOCAL_MA

原创 將系統中的編碼輸出到txt文件

using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.IO; namespace _32_解決

原创 資料管理器,Treeview,遞歸

using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; u

原创 win7 64位解決Infragistics.NetAdvantage 安裝時總是提示%SystemDriver%inetpub\wwwroot錯誤的方法

1、打開註冊表 Regist 2、找到HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft/InetStp/PathWWWRoot      64位操作系統:HKEY_LOCAL_MACHINE\SOFTWARE\

原创 oracle數據備份與恢復

數據導出: 1 將數據庫TEST完全導出,用戶名system 密碼manager 導出到D:\daochu.dmp中 exp system/manager@TEST file=d:\daochu.dmp full=y  2 將數據庫中sy

原创 Infragistics.Win.UltraWinToolbars 代碼添加按鈕——C#

界面上: Infragistics.Win.UltraWinToolbars.UtraToolbarsManager —— tbOneGrid Windows.Forms.ImageList  —— imageList1  (Images

原创 foreach的基本用法及原理——C#

using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Collections; namespa

原创 獲取當前exe執行文件的路徑 Assembly.GetExecutingAssembly().Location.ToString()

當前exe文件執行的路徑,這樣可以固定訪問該路徑下的文件,不會受openfiledialog的影響; string exepath = Assembly.GetExecutingAssembly().Location.ToString()