Using Windows Scripting Host In PowerBuilder

Using Windows Scripting Host In PowerBuilder

Using Windows Scripting Host on PowerBuilder for many purpose. On sample code below, you can use it to get the network domain, user name and computer name. To do so, you need Windows Scripting Host Object Model component (wshom.ocx)

Connect Object

You also can run VBScript from PowerBuilder easily. To do that you need Microsoft Script Control component (msscript.ocx)

List Windows processes or services You can get the list of the running services by replacing “select * from win32_process” by “select * from win32_service”

Good Luck!

Was this article helpful?
Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x