前往Shuct.Net首页

Shudepb PB反编译专家长时间以来,为业内同类软件事实上的唯一选择.细节,彰显专业.态度,决定品质.

关于PowerBuilder的搜索

PowerBuilder and WMI DevX Home Today's Headlines Articles Archive Tip Bank Forums Register Help Remember Me? Forum Today's Posts FAQ Calendar Forum Actions Mark Forums Read Quick Links View Forum Leaders What's New? Advanced Search Forum DevX Developer Forums Enterprise PowerBuilder and WMI If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. Results 1 to 1 of 1 Thread: PowerBuilder and WMI Thread Tools Show Printable Version Email this Page… Subscribe to this Thread… Display Linear Mode Switch to Hybrid Mode Switch to Threaded Mode 04-28-2004, 10:01 AM #1 spokynou View Profile View Forum Posts Registered User Join Date Apr 2004 Posts 1 PowerBuilder and WMI I want to retrieve (remotely) the serial number of a PC in PowerBuilder 9.0. Have someone examples or idea to do that ? I found this examples in VB : Retrieving Serial Numbers Remotely (17-01-2002) -------------------------------------------------------------------------------- System administrators often need to maintain a documentation of computers in a network. Here is a script that will help you retrieve the serial number from PC's remotely. Make Pcserial.vbs which will include: On Error Resume Next Dim System if Wscript.Arguments.Count >0 then sSystem=Wscript.Arguments(0) end if ComputerName = InputBox("Enter the name of the computer you wish to query") winmgmt1 = "winmgmts:{impersonationLevel=impersonate}!//"& ComputerName &"" Set SNSet = GetObject( winmgmt1 ).InstancesOf ("Win32_BIOS") for each SN in SNSet MsgBox "The serial number for the specified computer is: " & SN.SerialNumber Next How can I translate this in PB 9.0 code Thank you much Quick Navigation Enterprise Top Site Areas Settings Private Messages Subscriptions Who's Online Search Forums Forums Home Forums DevX Developer Forums .NET ASP.NET VB Classic Java C++ XML Web AJAX Database Security Mobile Architecture and Design Talk to the Editors Careers The Lounge API-Finder API Programming API Recommendations « Previous Thread | Next Thread » Forum DevX Developer Forums Enterprise PowerBuilder and WMI Bookmarks Bookmarks Digg del.icio.us StumbleUpon Google Posting Permissions You may not post new threads You may not post replies You may not post attachments You may not edit your posts BB code is On Smilies are On [IMG] code is Off [VIDEO] code is Off HTML code is Off Forum Rules -- Devx Upgraded -- Default Mobile Style Contact Us DevX.com Top FAQ Latest Articles Java .NET XML Database Enterprise Questions? Contact us. C++ Web Development Wireless Latest Tips Open Source Top DevX Stories Easy Web Services with SQL Server 2005 HTTP Endpoints JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S. Wed Yourself to UML with the Power of Associations Microsoft to Add AJAX Capabilities to ASP.NET IBM's Cloudscape Versus MySQL All times are GMT -4. The time now is 09:44 AM.