팩토리 » Api

xpluswinexec

Description

특정 파일 또는 실행 파일을 실행하는 API이다.

Parameters

Parameters Type Description
strCmdLine STRING 실행할 명령
bShow BOOL 실행창 보이게/백그라운드로 (true, false)

Return Value

Type Description
long 실행된 프로세서 아이디

Remark

* 실행 명령을 백그라운드 옵션으로 지정할 경우 윈도우에 보이지 않게 된다.

strCmdLine 파라미터 값에 지정한 파일 경로가 실행 파일이 아닌 경우에는, 해당 파일 정보와 연결된 프로그램을 실행한다.

strCmdLine 파라미터 값에 파일 경로와 파라미터를 같이 지정하는 경우에는 xpluswinexecex API를 사용해야 한다.

전용 브라우저 환경에서만 동작합니다.

Example

function btn_winexec_on_mouseup() { factory.xpluswinexec("cmd", true); factory.xpluswinexec("notepad", true); // csv파일을 실행시 // csv파일의 기본연결프로그램이 엑셀로 되어있으면 엑셀이 실행됨 // csv파일의 기본연결프로그램이 메모장으로 되어있으면 메모장이 실행됨 factory.xpluswinexec("c:\\temp\\text.csv", true); } function btn_winexecex_on_mouseup() { // 메모장을 통해서 csv파일을 실행하는 경우는 xpluswinexecex를 사용 factory.xpluswinexecex("notepad c:\\temp\\text.csv", true, 0); }

See Also

xplusisaliveprocessor
xpluskillprocessor
xpluswinexecex

Viewer Ver.

9.1.1.1

Update Date

20221202