By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
434,929 Members | 1,447 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 434,929 IT Pros & Developers. It's quick & easy.

Executing Application from Windows Service

P: n/a
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
Nov 21 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
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" <ra**************@vizual.co.in> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
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

Nov 21 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.