ShellExecute()의 12가지 사용방법
출처:http://www.howto.pe.kr프로그램을 띄우거나 파일을 실행할경우 ShellAPI 함수인 ShellExecute() 를 사용합니다. 이 함수는 윈도우즈 탐색기에서 파일을 선택하고 더블클릭하는 기능과 동일한 동작을 합니다. 다음은 ShellExecute() 의 몇가지 사용예입니다 (1) 파일과 연관(association)된 프로그램으로 파일을 엽니다 ShellExecute(Handle, 'open', PChar('test.txt'), nil, nil, SW_SHOW); (2) notepad.exe 에 파라미터로 config.sys 파일을 주어 메모장을 실행합니다 ShellExecute(Handle, 'open', 'notepad', 'c:\config.sys', nil, SW_SHOW); ..
2013. 2. 1.