Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Services > How to pass a start parameters to Windows Service

Reply
Thread Tools

How to pass a start parameters to Windows Service

 
 
Eric Chong
Guest
Posts: n/a
 
      09-05-2003
I created a Windows Service in C# that requires to get
passed command arguments like a Console App. I noticed
that there is an option "Start parameters" text box in
the property of a Windows Service in MMC. Is there any
way to get arguments using this option? If possible, what
framework method should I use to get an arguement?
Thanks in advance.

Eric
 
Reply With Quote
 
 
 
 
Jeffrey Tan[MSFT]
Guest
Posts: n/a
 
      09-08-2003

Hi Eric,

I think you can use WMI to get this property.
For more details, I will do some research for you.

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

--------------------
| Content-Class: urn:content-classes:message
| From: "Eric Chong" <(E-Mail Removed)>
| Sender: "Eric Chong" <(E-Mail Removed)>
| Subject: How to pass a start parameters to Windows Service
| Date: Fri, 5 Sep 2003 11:12:02 -0700
| Lines: 9
| Message-ID: <23aa01c373d9$347ab3e0$(E-Mail Removed)>
| MIME-Version: 1.0
| Content-Type: text/plain;
| charset="iso-8859-1"
| Content-Transfer-Encoding: 7bit
| X-Newsreader: Microsoft CDO for Windows 2000
| X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300
| Thread-Index: AcNz2TR6u0M+7LjdQrSdpKUorgvuVg==
| Newsgroups: microsoft.public.dotnet.framework.aspnet.webservic es
| Path: cpmsftngxa06.phx.gbl
| Xref: cpmsftngxa06.phx.gbl
microsoft.public.dotnet.framework.aspnet.webservic es:19222
| NNTP-Posting-Host: TK2MSFTNGXA09 10.40.1.161
| X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet.webservic es
|
| I created a Windows Service in C# that requires to get
| passed command arguments like a Console App. I noticed
| that there is an option "Start parameters" text box in
| the property of a Windows Service in MMC. Is there any
| way to get arguments using this option? If possible, what
| framework method should I use to get an arguement?
| Thanks in advance.
|
| Eric
|

 
Reply With Quote
 
 
 
 
Jeffrey Tan[MSFT]
Guest
Posts: n/a
 
      09-09-2003

Hi Eric,

I found that this post had been posted in several groups.
A member of our team has replied your question in
microsoft.public.dotnet.general
He will follow up you there.
Thanks for you understanding.

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

--------------------
| Content-Class: urn:content-classes:message
| From: "Eric Chong" <(E-Mail Removed)>
| Sender: "Eric Chong" <(E-Mail Removed)>
| Subject: How to pass a start parameters to Windows Service
| Date: Fri, 5 Sep 2003 11:12:02 -0700
| Lines: 9
| Message-ID: <23aa01c373d9$347ab3e0$(E-Mail Removed)>
| MIME-Version: 1.0
| Content-Type: text/plain;
| charset="iso-8859-1"
| Content-Transfer-Encoding: 7bit
| X-Newsreader: Microsoft CDO for Windows 2000
| X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300
| Thread-Index: AcNz2TR6u0M+7LjdQrSdpKUorgvuVg==
| Newsgroups: microsoft.public.dotnet.framework.aspnet.webservic es
| Path: cpmsftngxa06.phx.gbl
| Xref: cpmsftngxa06.phx.gbl
microsoft.public.dotnet.framework.aspnet.webservic es:19222
| NNTP-Posting-Host: TK2MSFTNGXA09 10.40.1.161
| X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet.webservic es
|
| I created a Windows Service in C# that requires to get
| passed command arguments like a Console App. I noticed
| that there is an option "Start parameters" text box in
| the property of a Windows Service in MMC. Is there any
| way to get arguments using this option? If possible, what
| framework method should I use to get an arguement?
| Thanks in advance.
|
| Eric
|

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: How include a large array? Edward A. Falk C Programming 1 04-04-2013 08:07 PM
How to start a service with the win32-service gem Kai Geng Ruby 0 12-12-2007 10:00 AM
How to pass the parameters (soap message) to a web service... prasathrk ASP .Net Web Services 0 11-27-2007 02:03 PM
Start Web services as Windows Services start Anup ASP .Net 1 05-09-2006 11:44 AM
.NET C# service error 1053, service could not start in timely fash =?Utf-8?B?M2Ry?= ASP .Net 2 09-07-2004 09:50 AM



Advertisments