----------------------------------------------------------- New Message on BDOTNET
-----------------------------------------------------------
From: Iamtheoneurwarnedabout
Message 2 in Discussion
Hi Dan,
Hope the below code solves ur purpose,
class GetProcessesByNameClass
{
public static void Main(string[] args)
{
try
{
Console.Write("Create notepad processes on Remote Machine \n");
Console.Write("Enter Remote Machine Name : ");
string remoteMachineName = Console.ReadLine();
Process[] myProcesses = Process.GetProcessesByName
("notepad",remoteMachineName);
if(myProcesses.Length == 0)
Console.WriteLine("Could not find notepad processes on remote
machine");
catch(SystemException e)
{
Console.Write("Caught Exception .... : " + e.Message);
}
catch(Exception e)
{
Console.Write("Caught Exception .... : " + e.Message);
}
}
}
For more details u can refer MSDN.
Thanks,
Arshad
"BDOTNET"
<[EMAIL PROTECTED] To: "BDOTNET" <[EMAIL PROTECTED]>
s.msn.com> cc:
Subject: Remote Application
03/03/2004
12:03 PM
Please respond
to "BDOTNET"
New Message on BDOTNET
Remote Application
|-------------------------------------------+------------------------------------------------------|
| Reply |
|
| |
|
| |
|
| | Recommend
|
| | Message 1
in Discussion|
| |
|
|-------------------------------------------+------------------------------------------------------|
|
|
|
|
|From: Dhanaventh
|
|
|
|
|
|Hi ,
|
|
|
| I want to know how i gan trigger a
remote application|
|(Say a Notepad.exe). Lets assume i have
admin rights |
|on the remote machine. I know we can use
the 'Process;|
|class. But i do not know how to set the
right |
|paraments of the remote app. Pl help me
with this. |
|
|
|Thanks in advance
|
|
|
|Dan
|
|
|
------------------------------------------------------|
View other groups in this category.
Also on MSN:
Start Chatting | Listen to Music | House & Home |
Try Online Dating | Daily Horoscopes
To stop getting this e-mail, or change how often it arrives, go to
your E-mail Settings.
Need help? If you've forgotten your password, please go to Passport
Member Services.
For other questions or feedback, go to our Contact Us page.
If you do not want to receive future e-mail from this MSN group, or
if you received this message by mistake, please click the "Remove"
link below. On the pre-addressed e-mail message that opens, simply
click "Send". Your e-mail address will be deleted from this group's
mailing list.
Remove my e-mail address from BDOTNET.
-----------------------------------------------------------
To stop getting this e-mail, or change how often it arrives, go to your E-mail
Settings.
http://groups.msn.com/bdotnet/_emailsettings.msnw
Need help? If you've forgotten your password, please go to Passport Member Services.
http://groups.msn.com/_passportredir.msnw?ppmprop=help
For other questions or feedback, go to our Contact Us page.
http://groups.msn.com/contact
If you do not want to receive future e-mail from this MSN group, or if you received
this message by mistake, please click the "Remove" link below. On the pre-addressed
e-mail message that opens, simply click "Send". Your e-mail address will be deleted
from this group's mailing list.
mailto:[EMAIL PROTECTED]
