uses에 shellapi를 추가해야한다.
ShellExecute(handle, 'open','notepad.exe','1.txt',nil,SW_NORMAL);
실행파일을 실행한다.. 4번째 인자는 파리미터다..
ShellExecute(handle, 'open','c:1.htm',nil,nil,SW_NORMAL);
연결파일을 실행한다..
c:에 1.htm파일이 있다면, IE실행되면서 1.htm 파일을 불러들인다.
다른 확장자를 가진 파일도 다 해당된다.
ShellExecute(handle, 'open',' http://textout.zetyx.net/',nil,nil,SW_NORMAL);
http싸이트 명을 주어도 싸이트로 들어가진다;;; 하긴 탐색기가 IE이니...
ShellExecute(handle, 'open','C:Program Files',nil,nil,SW_NORMAL);
경로명을 주면 그 경로의 폴더창이 열린다..
ShellExecute(handle, 'explore',nil,nil,'C:Program Files',SW_NORMAL);
탐색기를 실행한다.
|