정규식 몇개...
2010.02.01 by 탑~!
IP 주소 가져오기
2009.12.22 by 탑~!
shortcut 만들기
2009.10.09 by 탑~!
Connection strings for Informix
2009.08.14 by 탑~!
Visual C#.NET을 사용하여 XML 파일에 특수 문자 사용
2009.08.12 by 탑~!
MAC Address
2009.05.25 by 탑~!
HDD Serial
CPU Serial
전화번호 : 0\d{2,3}\-\d{2,4}\-\d{3,4} 휴대폰번호 : 01[16789]\-\d{2,4}\-\d{3,4} 주민등록번호: \d{6}\-\d{7} domain : http\:\/\/[\w\-]+(\.\[\w\-]+)+ http://www.regexlib.com/
C# 2010. 2. 1. 11:51
private String GetIpAddress() { String strIpAddress = String.Empty; ObjectQuery objQuery = new ObjectQuery("SELECT * FROM Win32_NetworkAdapterConfiguration WHERE IPEnabled='True'"); ManagementObjectSearcher mobjSearcher = new ManagementObjectSearcher(objQuery); try { foreach (ManagementObject obj in mobjSearcher.Get()) { strIpAddress = ((String[])obj["IPAddress"])[0]; break; } } catch (Exception..
C# 2009. 12. 22. 16:09
using IWshRuntimeLibrary; private WshShellClass WshShell; private void btnShortcut_Click(object sender, System.EventArgs e) { // Create a new instance of WshShellClass WshShell = new WshShellClass(); // Create the shortcut IWshRuntimeLibrary.IWshShortcut MyShortcut; // Choose the path for the shortcut MyShortcut = (IWshRuntimeLibrary.IWshShortcut)WshShell.CreateShortcut(@"C:\MyShortcut.lnk"); //..
C# 2009. 10. 9. 15:02
The following providers can be used when connecting to Informix IBM Informix .NET Provider (IfxConnection) Luxena dbExpress driver for Informix Pro IBM Informix OLE DB Provider .NET Framework Data Provider for OLE DB (OleDbConnection) IBM Informix ODBC Driver Informix-CLI 2.5 .NET Framework Data Provider for ODBC (OdbcConnection) IBM Informix .NET Provider Type: .NET Framework Class Library Usag..
C# 2009. 8. 14. 17:01
http://support.microsoft.com/kb/316063/ko
C# 2009. 8. 12. 20:30
public void GetMacAddress() { string qry = "select * FROM Win32_NetworkAdapter"; System.Management.ObjectQuery objectQuery = new System.Management.ObjectQuery(qry); System.Management.ManagementObjectSearcher searcher = new System.Management.ManagementObjectSearcher(objectQuery); string macAdd = ""; foreach (System.Management.ManagementObject nicObj in searcher.Get()) { macAdd = nicObj["MACAddres..
C# 2009. 5. 25. 18:59
public string GetHDDSerialNumber(string drive) { //check to see if the user provided a drive letter //if not default it to "C" if (drive == "" || drive == null) { drive = "C"; } //create our ManagementObject, passing it the drive letter to the //DevideID using WQL System.Management.ManagementObject disk = new System.Management.ManagementObject("win32_logicaldisk.deviceid=\"" + drive + ":\""); //..
C# 2009. 5. 25. 18:58
System.Management.ManagementObjectSearcher Win32Processor = new System.Management.ManagementObjectSearcher("select * from win32_processor"); string rtuProID, strProID; rtuProID = ""; foreach (System.Management.ManagementObject Source in Win32Processor.Get()) { strProID = Source["ProcessorID"].ToString(); //Console.WriteLine("CPU Name - " + Source["Name"]); //Console.WriteLine("CPU ProcessorID - ..