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
Tracy Baird
NA
10
0
running CommandPrompt from a Windows Service
Nov 3 2009 11:59 AM
I have a Windows Service that will create a Process object and fire the command prompt with a specific command. The problem I am having is that apparently the command prompt is trying to open a window and I am getting the following error: Error: Showing a modal dialog box or form when the application is not running in UserInteractive mode is not a valid operation. Specify the ServiceNotification or DefaultDesktopOnly style to display a notification from a service application. (System.InvalidOperationException) Can anyone help me to make this fire in the background using a windows service or do I have to go another way?
Reply
Answers (
3
)
Overload Method Error
How to display a long string in a TextBox