Hi, In VB.net, how can i know the results of Obj.GetText without running the code and using messagebox to display it? thanks
sentmemail
Posts
-
displaying results -
create a registry keywhats the advantages and disadvantages between C# and VB.net?
-
ping a PC using VB.neti am using VS 2003. Where can i get to know what are the classes available for use?
-
create a registry keythe links are for C#. I am looking for VB.net
-
create a registry keyHi, does anyone have the code to create a registry key on a remote PC using WMI in VB.net ? thanks
-
ping a PC using VB.netHi, how can i get this vbscript code into VB.net? thanks Set objShell = CreateObject("WScript.Shell") strPingResults = LCase(objExec.StdOut.ReadAll) If InStr(strPingResults, "reply from") Then Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\CIMV2")
-
'Generate Managed Class'This is how i got there: Install the WMI Extensions Open Visual Studio New Project Go to Server Explorer / Management Classes Right Click -> Add Class Drill down to root\CIMV2 : Printers Click Add and OK Right click on the new node -> Generate Managed Class -- modified at 21:39 Friday 27th January, 2006
-
'Generate Managed Class'hi, in .Net i have used 'Generate Managed Class' to generate win32_printer.vb how can i use this class to get all all the printer names on my computer? thanks
-
convert WMI scriptWao! seems like i need to rewrite my vbscripts !! is there anyway to import them into VB?
-
convert WMI scriptHi, how can i convert the below vbscript into .net ? thanks Computer = InputBox("Enter the computer name","Terminate Process", "localhost") PName = InputBox("Enter the name of the process","Terminate Process") Set Processes = GetObject("winmgmts:{impersonationLevel=impersonate}!\\" & Computer & "\root\cimv2").ExecQuery("select * from Win32_Process where Name = '" & PName & "'") For each Process in Processes Process.Terminate Next