본문 바로가기

Programing (프로그래밍)

WPF & C# - FileSystemWatcher 파일시스템감시 ( 실시간 폴더 및 파일 변경사항 체크 ) WPF & C# - FileSystemWatcher 파일시스템감시 ( 실시간 폴더 및 파일 변경사항 체크 ) MainWindow.xaml 1 2 3 4 5 6 7 Colored by Color Scripter cs MainWindow.xaml.cs 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 using System; us.. 더보기
WPF & C# - NPKI 공인인증서 폴더 위치 열기 ( Folder Open Path ) WPF & C# - NPKI 공인인증서 폴더 위치 열기 ( Folder Open Path ) MainWindow.xaml 123 Colored by Color Scriptercs MainWindow.xaml.cs 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788private void btn_Click(object sender, RoutedEventArgs e){ AppData_NPKI(); Path_NPKI(); Path_x86_NPKI();} //인증서 목.. 더보기
WPF & C# - 웹페이지에서 JSONString 값 가져오기 ( JSON / PHP / WEB / JSON_UNESCAPED_UNICODE / Newtonsoft.Json ) WPF & C# - 웹페이지에서 JSONString 값 가져오기 ( JSON / PHP / WEB / JSON_UNESCAPED_UNICODE / Newtonsoft.Json ) Newtonsoft.Json 추가하기참조추가 > NuGet 패키지 관리 > 찾아보기 > Newtonsoft.Json > 설치 json.php PHP ( json string 생성하기 )123456Colored by Color Scriptercs 출력{"korean":"한글","english":"Hello"} MainWindow.xaml 1234 Colored by Color Scriptercs MainWindow.xaml.cs using System;using System.IO;using System.Net;using Syste.. 더보기
WPF & C# - File Open Copy Move Rename ( 파일 열기 / 복사하기/ 이동하기 / 이름변경하기 ) WPF & C# - File Open Copy Move Rename ( 파일 열기 / 복사하기/ 이동하기 / 이름변경하기 ) MainWindow.xaml.cs 123456789101112 Colored by Color Scriptercs MainWindow.xaml.cs 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970using Microsoft.Win32;using System.IO;using System.Windows; string file = ""; // 파일 Path // 파일열기private void btnOpe.. 더보기
PHP - MySQL DB 다루기 ( 데이터베이스 / 디비 / database / mysql_fetch_assoc / Colum / Colums / 칼럼 ) PHP - MySQL DB 다루기 ( 데이터베이스 / 디비 / database / mysql_fetch_assoc / Colum / Colums / 칼럼 ) MySQL 열 읽어오기 ( mysql_fetch_assoc / Colum / Colums / 칼럼 ) 1234567891011121314151617181920212223Colored by Color Scriptercs 참고자료 : http://php.net/manual/kr/function.mysql-fetch-assoc.php MySQL 읽기 속도 관련 http://cricri4289.blogspot.com/2013/10/php-mysql-mysqli-mysqlifetchrow.html천만개 정도 데이터 양이 있을때, object()와 assoc(.. 더보기
PHP - phpMyAdmin WebMysql 에 CSV 엑셀 파일 업로드 입력하기 ( Excel / Upload / data / 데이터 / 데이타 ) PHP - phpMyAdmin WebMysql 에 CSV 엑셀 파일 업로드 입력하기 ( Excel / Upload / data / 데이터 / 데이타 ) 01. xls 및 xlsx 엑셀파일을 형식을 CSV로 변경 > '다른이름으로 저장하기' 누른 후 'CSV UTF-8(쉼표로 분리)(*.csv)를 눌러준다. 02. phpMyAdmin 에서 CSV 파일을 업로드 > 찾아보기 눌러서 파일 선택 > 파일 문자셋 ; UTF8 선택 > Partial import : 1 로 변경 ( 첫행 제외 후 입력 ) > Format of imported file >> CSV >> 필드구분자 : , >> 열(칼럼)이름 : CSV 파일을 메모장으로 열은 후 첫행을 복사해서 붙여 넣는다. 03. 입력된 데이터 확인 > Mysql 에.. 더보기
WPF & C# - 마우스 커서 변경 ( Mouse Cursor / Cursors Change / Cursors.Arrow ) WPF & C# - 마우스 커서 변경 ( Mouse Cursor / Cursors Change / Cursors.Arrow ) MainWindow.xaml 123 Colored by Color Scriptercs MainWindow.xaml.cs 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556public MainWindow(){ InitializeComponent(); // 버튼 생성 for(int i = 0; i 더보기
WPF & C# - 실행파일명 확인하기 ( Environment.GetCommandLineArgs() ) WPF & C# - 실행파일명 확인하기 ( Environment.GetCommandLineArgs() ) MainWindow.xaml.cs 1234567891011private void Window_Loaded(object sender, RoutedEventArgs e){ lbl.Content = ""; if (args.Count() == 2) lbl.Content += args[1] + "\n"; // 실행 파일명 string[] args = Environment.GetCommandLineArgs(); foreach (string str in args) // 실행 파일이 다수인경우 { lbl.Content += str + "\n"; }}Colored by Color Scriptercs 더보기