API 함수
Declare Function ShellExecute Lib "shell32.dll" Alias "ShellExecuteA" _
(ByVal hWnd As Long, ByVal lpOperation As String, _
ByVal lpFile As String, ByVal lpParameters As String, _
ByVal lpDirectory As String, ByVal nShowCmd As Long) As Long
외부 파일 실행과 파라미터 지정
Call ShellExecute(0, "Open", strFilePath, strParms, strDir, 5)
예제>
아크로뱃 리더를 이용해서 D:\의 sample.pdf 열기
call shellexecute(0, "Open", "C:\Program Files\Adobe\Acrobat 7.0\Reader\AcroRd32.exe", "D:\sample.pdf", "D:\", 5)
댓글 없음:
댓글 쓰기