Click here to Skip to main content
15,922,894 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: SQL Staement problem help!!! Pin
Steve Pullan26-Mar-06 16:18
Steve Pullan26-Mar-06 16:18 
Questionhow can i make a form to take the shape of a certain bmp Pin
scorp_scorp26-Mar-06 0:50
scorp_scorp26-Mar-06 0:50 
AnswerRe: how can i make a form to take the shape of a certain bmp Pin
Chatura Dilan26-Mar-06 14:02
Chatura Dilan26-Mar-06 14:02 
GeneralRe: how can i make a form to take the shape of a certain bmp Pin
Rey999927-Mar-06 3:36
Rey999927-Mar-06 3:36 
GeneralRe: how can i make a form to take the shape of a certain bmp Pin
scorp_scorp27-Mar-06 3:40
scorp_scorp27-Mar-06 3:40 
Questionhow to open doc or txt file Pin
scorp_scorp25-Mar-06 22:53
scorp_scorp25-Mar-06 22:53 
AnswerRe: how to open doc or txt file Pin
Chatura Dilan25-Mar-06 23:35
Chatura Dilan25-Mar-06 23:35 
QuestionHelp with vbscript and Windows NT Pin
Its due when25-Mar-06 19:10
Its due when25-Mar-06 19:10 
Hi Guys,

Well I'm totally stumped. I've got a bit of vbscript code that tries to find a particular process running on a machine (Windows NT). If the process exists I want the text ("I am running...") displayed. If it doesn't exist then I want the text ("I am not running") displayed.
Just some background on the OS. Its Win NT 4 service pack 6 and i reinstalled WMI Core 1.5
On win xp, win 2k and win 2k3 the script below works fine. However on windows nt where this will reside on it fails giving me an error 80041001 which I belive is a "Call failed" error.
Can anyone shed some light on why this would be happening on NT in particular? Thanks in advance

<%
Dim strComputer, strProcess
strComputer = "."

On Error Resume Next
Set objWMIService = GetObject("winmgmts:" _
& "{impersonationLevel=impersonate}!­ \\" _
& strComputer & "\root\cimv2")

Set colProcess = objWMIService.ExecQuery _
("Select * from Win32_Process")

For Each objProcess in colProcess
do while objProcess.name = "Someprocess.exe"
strProcess = objProcess.name
'objProcess.Name
'If objProcess.name = "Someprocess.exe" then
Response.Write ("I am running...")
'Else
'End If
Exit Do
Loop
Next

If strProcess = "" then
Response.Write ("I am NOT running")
End If

%>
AnswerRe: Help with vbscript and Windows NT Pin
Dave Kreskowiak26-Mar-06 4:36
mveDave Kreskowiak26-Mar-06 4:36 
GeneralRe: Help with vbscript and Windows NT Pin
Its due when26-Mar-06 11:35
Its due when26-Mar-06 11:35 
GeneralRe: Help with vbscript and Windows NT Pin
Dave Kreskowiak26-Mar-06 12:42
mveDave Kreskowiak26-Mar-06 12:42 
GeneralRe: Help with vbscript and Windows NT Pin
Its due when26-Mar-06 12:56
Its due when26-Mar-06 12:56 
GeneralRe: Help with vbscript and Windows NT Pin
Dave Kreskowiak26-Mar-06 13:10
mveDave Kreskowiak26-Mar-06 13:10 
GeneralRe: Help with vbscript and Windows NT Pin
Its due when26-Mar-06 13:36
Its due when26-Mar-06 13:36 
QuestionTread problem Pin
blucas200525-Mar-06 17:35
blucas200525-Mar-06 17:35 
AnswerRe: Tread problem Pin
Dave Kreskowiak26-Mar-06 4:26
mveDave Kreskowiak26-Mar-06 4:26 
Questionget callerid Value by vb.net 2003 Pin
SVb.net25-Mar-06 11:23
SVb.net25-Mar-06 11:23 
AnswerRe: get callerid Value by vb.net 2003 Pin
Recep Tarakci25-Mar-06 19:57
Recep Tarakci25-Mar-06 19:57 
QuestionData Binding an Image to MS Access Pin
JMS7625-Mar-06 9:32
JMS7625-Mar-06 9:32 
AnswerRe: Data Binding an Image to MS Access Pin
Recep Tarakci25-Mar-06 9:46
Recep Tarakci25-Mar-06 9:46 
QuestionGet CallerID value using Visual Basic.NET 2005 Pin
Recep Tarakci25-Mar-06 9:08
Recep Tarakci25-Mar-06 9:08 
QuestionSQL Statemnt problems Pin
LeRoiScorpion25-Mar-06 9:01
LeRoiScorpion25-Mar-06 9:01 
GeneralRe: SQL Statemnt problems Pin
Guffa25-Mar-06 10:22
Guffa25-Mar-06 10:22 
GeneralRe: SQL Statemnt problems Pin
LeRoiScorpion25-Mar-06 18:33
LeRoiScorpion25-Mar-06 18:33 
AnswerRe: SQL Statemnt problems Pin
Guffa25-Mar-06 18:42
Guffa25-Mar-06 18:42 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.