Coba script d Powerbuilder Example -> Function -> Working with
Executable (w_file_functions)
lebih lengkap sampe cek title window, min, max, dsb
untuk mendapatkan status run saja, bisa pake script execute Query
service.. name = applikasi yang d cek
//-------
OleObject locator,service,props
String ls_query = &
'select name , description from Win32_Process where name = "notepad.exe"'
int num, ret, i
locator = CREATE OleObject
ret = locator.ConnectToNewObject("WbemScripting.SWbemLocator");
service = locator.ConnectServer();
props = service.ExecQuery(ls_query);
num = props.count()
IF num > 0 THEN
MessageBox("Process","notepad.exe is running")
ELSE
Messagebox("Process","notepad.exe is NOT running")
END IF
//-------
--- In [EMAIL PROTECTED], "antok2486" <[EMAIL PROTECTED]> wrote:
>
> Rekan-rekan IndoPB mohon bantuanya...
> Bagaimana cara mendapatkan nama aplikasi yang sedang running, misal
> sedang running 'notepad.exe' dan 'calc.exe'..untuk mendapatkan itu gmn
> (notepad.exe dan calc.exe)..???
> Bantuan dari rekan-rekan sangat saya harapkan...
> Salam
> Bambang Suprianto
>
-----------------------------------------------
IndoPB - Indonesia PB User Group
An Indonesian PowerBuilder User Group's Event
2nd PowerBuilder Update
Rumah Sakit Jantung Harapan Kita
26/27 August 2006
To Register :
http://groups.yahoo.com/group/indopb/database?method=addRecord&tbl=4
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/indopb/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/indopb/join
(Yahoo! ID required)
<*> To change settings via email:
mailto:[EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/