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
TAN WhoAMI
NA
291
0
Check if other PCs in network running the program
Aug 19 2013 9:50 PM
I want to check if certain program is executing from other PCs in the network. I test with below code, which works for local PC. How do I extend to check for other PCs in the network?
thanks.
using System;
using System.Text;
using System.Diagnostics;
using System.Windows.Forms;
using System.Linq;
class Program
{
static void Main(string[] args)
{
bool isRunning = Process.GetProcessesByName("Abc")
.FirstOrDefault(p => p.MainModule.FileName.StartsWith(@"X:\ABC\test\Bin")) != default(Process);
if (! isRunning)
MessageBox.Show("nothing");
else
MessageBox.Show("run");
}
}
Reply
Answers (
1
)
Display Percentage Value On Piechart In Silverlight 5
Device charging using power plug and USB