TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Andris
NA
1
0
How to start process with Windows service
Nov 10 2007 10:32 AM
Hi, I created a Windows service and I'd like to start a new process from it. So far it was made clear for me that a service cannot start a visible process, because it has no "screen" to start on. My service has to make a log off from windows. So I created this: Process p = new Process(); p.StartInfo.FileName = "shutdown.exe"; p.StartInfo.Arguments = "-l"; p.StartInfo.UseShellExecute = false; p.Start(); Apparently it is not executed properly because the system doesn't log off. Of course when I attach the service to my Visual Studio, it works. How can I call the logoff from my service?
Reply
Answers (
0
)
Browser control in C# 2.0
voice input...