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
Zalak Parikh
NA
13
1.9k
Run an executable file from windows service
Aug 19 2019 6:41 AM
I created a windows service with Process.start(filepath) in it. But it is neither working nor showing any errors. I got the file as a background process in the task manager.
I tried BackgroundWorker with DoWorkEventHandler delegate to start the process. But I failed to start the process.
I also tried with ProcessStartInfo and UseShellExecute as false but it is not working.
Process prs =
new
Process();
string
strAppPath;
strAppPath =
"C:\\WINDOWS\\SYSTEM32\\notepad.exe"
;
prs = Process.Start(strAppPath);
prs.WaitForExit();
base
.Stop();
Attachment:
backgroung_process.zip
Reply
Answers (
2
)
System.IO.FileLoadException occurred while the installation
Real time event trigger from bio metric k30 device