Click here to Skip to main content
15,885,546 members
Home / Discussions / Visual Basic
   

Visual Basic

 
Questioncould not find installable ISAM Pin
NaliniNagarajan28-Jan-09 2:56
NaliniNagarajan28-Jan-09 2:56 
AnswerRe: could not find installable ISAM Pin
Dave Kreskowiak29-Jan-09 3:14
mveDave Kreskowiak29-Jan-09 3:14 
QuestionProblem running remote process using WMI [modified] Pin
thecornflake28-Jan-09 2:07
thecornflake28-Jan-09 2:07 
AnswerRe: URGENT problem running remote process using WMI Pin
EliottA28-Jan-09 2:55
EliottA28-Jan-09 2:55 
GeneralRe: URGENT problem running remote process using WMI Pin
thecornflake28-Jan-09 3:09
thecornflake28-Jan-09 3:09 
GeneralRe: URGENT problem running remote process using WMI Pin
EliottA28-Jan-09 3:19
EliottA28-Jan-09 3:19 
GeneralRe: URGENT problem running remote process using WMI Pin
thecornflake28-Jan-09 3:21
thecornflake28-Jan-09 3:21 
GeneralRe: URGENT problem running remote process using WMI Pin
thecornflake28-Jan-09 4:32
thecornflake28-Jan-09 4:32 
I've changed the way I'm doing it now. I'm getting a return code of 9 but I can't seem to find out what these codes mean.

New code -

Dim processClass2 As ManagementClass = New ManagementClass("Win32_Process")
processClass2.Scope = scope
Dim inParams2 As ManagementBaseObject = processClass2.GetMethodParameters("Create")
Dim startup As ManagementClass = New ManagementClass("WIN32_ProcessStartup")
startup.Scope = scope
inParams2("CommandLine") = patchcommand
inParams2("ProcessStartupInformation") = startup
Dim outParams As ManagementBaseObject = processClass2.InvokeMethod("Create", inParams2, Nothing)


'Check for an error
If (outParams("ReturnValue").ToString) <> "0" Then
    'Add error to listview
    Dim itms1 As New Windows.Forms.ListViewItem.ListViewSubItem _
        (itmp, "Could not start process. Error code " & (outParams("ReturnValue").ToString))
    itmp.ForeColor = Color.Red
    itmp.SubItems.Add(itms1)
    itmp.Checked = True
    'Skip to next file
    GoTo skipfile
End If

GeneralRe: URGENT problem running remote process using WMI Pin
Uros Calakovic28-Jan-09 5:29
Uros Calakovic28-Jan-09 5:29 
GeneralRe: URGENT problem running remote process using WMI Pin
thecornflake28-Jan-09 5:50
thecornflake28-Jan-09 5:50 
Questionhow to develop print dialog box Pin
vidhish27-Jan-09 23:37
vidhish27-Jan-09 23:37 
AnswerRe: how to develop print dialog box Pin
dan!sh 28-Jan-09 0:04
professional dan!sh 28-Jan-09 0:04 
QuestionHelp Pin
yaya_star27-Jan-09 21:15
yaya_star27-Jan-09 21:15 
AnswerRe: Help Pin
Ashutosh Phoujdar27-Jan-09 21:29
Ashutosh Phoujdar27-Jan-09 21:29 
QuestionODBC Pin
Stephen Lintott27-Jan-09 21:08
Stephen Lintott27-Jan-09 21:08 
AnswerRe: ODBC Pin
Jay Royall27-Jan-09 22:37
Jay Royall27-Jan-09 22:37 
AnswerRe: ODBC Pin
Wendelius27-Jan-09 22:43
mentorWendelius27-Jan-09 22:43 
GeneralRe: ODBC Pin
Stephen Lintott28-Jan-09 1:31
Stephen Lintott28-Jan-09 1:31 
GeneralRe: ODBC Pin
Wendelius28-Jan-09 1:46
mentorWendelius28-Jan-09 1:46 
GeneralRe: ODBC Pin
Stephen Lintott28-Jan-09 2:56
Stephen Lintott28-Jan-09 2:56 
GeneralRe: ODBC Pin
Wendelius29-Jan-09 9:33
mentorWendelius29-Jan-09 9:33 
GeneralRe: ODBC Pin
Ben Fair28-Jan-09 2:50
Ben Fair28-Jan-09 2:50 
QuestionFindFile file type question Pin
monsieur_jj27-Jan-09 19:26
monsieur_jj27-Jan-09 19:26 
AnswerRe: FindFile file type question Pin
Ashutosh Phoujdar27-Jan-09 20:13
Ashutosh Phoujdar27-Jan-09 20:13 
Questionhow to create line graph using C# Pin
karthick sampangi27-Jan-09 18:59
karthick sampangi27-Jan-09 18:59 

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.