Re: Executing Application from Windows Service

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



well you could try this one

Imports System.Diagnostics

Public Module modmain

Sub Main()

Dim NewProcess as Process = new Process

NewProcess.Start("C:\MyApplication.exe")

End Sub

End Module

the above code is the counterpart of the shellexecute api

regards

Mchel Posseth [MCP]

"Rajeev Ramanujan" <rajeev.ramanujan@xxxxxxxxxxxx> wrote in message
news:%23pZT0udkFHA.1044@xxxxxxxxxxxxxxxxxxxxxxx
> Hi All,
>
> I'm trying to execute a standalone application written in VB .Net using
> a windows service developed using VB .Net. But the service is not able to
> execute the application.
>
> How to make the application execute from the Windows Service that i
> wrote? I tried using the SHELL command to execute the application from the
> service as shown below.
>
> Shell("c:\temp\WindowsApplication2.exe", AppWinStyle.Hide)
>
>
>
> Thanks in advance
>
> Rajeev R
>


.



Relevant Pages

  • Timer not always firing in windows service; works on winForm tho
    ... I've written a vb.net windows service that will execute a chunk of code every ... Protected Overrides Sub OnStartAs String) ... and calling the timer in a new thread and calling my sub ...
    (microsoft.public.win32.programmer.ui)
  • Remoting and Windows Services
    ... I want to use remoting to send messages from a windows service to a windows form app, but I just can't get it to work. ... remotable object that inherits from MarshalByRefObject. ... Public Delegate Sub TestServiceEventHandler(ByVal Message As String) ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Access module does not continue past the Filter Method
    ... Execute the procedure, and single-step through it with F8 so you can trace ... Public Sub Apply_Tech_Filter ... Debug.Print "Past the Filter" ... Debug.Print "Before the Append Statement" ...
    (microsoft.public.access.modulesdaovba)
  • Re: Error:Invalid procedure call or argument
    ... > Number 0 everytiime I execute this code: ... > Private Sub Update() ... > On Error GoTo ErrHand ... > Following is an example of the completed SQL string. ...
    (microsoft.public.access.formscoding)
  • Re: Using ADO.NET to prcoess T-SQL batches
    ... The way cool additional thing Whidbey ADO.NET v2 provides for this is the ... > only execute batches under a certain size, either 40K or 80K, if I ... >> Print statements return their data to an ADO.NET client as InfoMessages. ... Private Sub Button1_Click(ByVal sender As System.Object, ...
    (microsoft.public.dotnet.framework.adonet)