Executing Application from Windows Service

R

Rajeev Ramanujan

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
 
M

m.posseth

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]
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top