실행 파일 또는 dll을 실행합니다. execute 함수가 호출할 파일이나 dll을 찾을 수 없으면 false를 반환합니다.
첫 번째 매개변수는 실행할 항목의 경로입니다. dll의 경로인 경우 두 개의 콜론 뒤에 API 함수가 나와야 합니다. dll 호출 형식은 PATH::APIFunctionName입니다. dll의 Execute인 경우 다음 두 함수 유형에서만 호출을 찾습니다.
int FunctionName();
int FunctionName( const char * );
호출이 명령줄 인수를 사용할 경우 인수를 입력하거나 빈 문자열을 입력하십시오.
스크립트가 실행 파일이 완료될 때까지 기다릴지 여부를 나타내는는 부울 값입니다. dll 호출의 경우 이 매개 변수를 무시합니다.
/*executes notepad with the following file, myfile.txt and waits for the process to end.*/ Execute( "c:\\windows\\notepad.exe", "myfile.txt", true ); /*executes notepad without parameters and waiting.*/ Execute( "c:\\windows\\notepad.exe" ); /* makes a call into the dll with parameters*/ Execute( "c\\windows\\Somelib.dll::CheckNetwork", "000d1");
**dll PATH::APIFunctionName 형식에 주의하십시오.
|
Copyright © 2014 CA.
All rights reserved.
|
|