Run an EXE in remote machine
-
I have to run an EXE in remote machine, exe will be present in same remote machine just i have to initiate that EXE through my code. I am using ASp.Net with C# Can you help me to solve this problem by providing steps/code for this need...
You can't until you have access to the path where EXE resides. Also starting an EXE on the server is pointless.
Navaneeth How to use google | Ask smart questions
-
I have to run an EXE in remote machine, exe will be present in same remote machine just i have to initiate that EXE through my code. I am using ASp.Net with C# Can you help me to solve this problem by providing steps/code for this need...
madancode wrote:
I have to run an EXE in remote machine
Do you mean the client side?
Manas Bhardwaj Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
-
I have to run an EXE in remote machine, exe will be present in same remote machine just i have to initiate that EXE through my code. I am using ASp.Net with C# Can you help me to solve this problem by providing steps/code for this need...
madancode wrote:
I have to run an EXE in remote machine, exe will be present in same remote machine just i have to initiate that EXE through my code. I am using ASp.Net with C#
You want to execute EXE on Client System? If yes... ActiveX or Applet is one option. Javascript does not have the sufficient rights to execute exe on clients.
cheers, Abhijit CodeProject MVP Web Site:abhijitjana.net View My Recent Article
-
madancode wrote:
I have to run an EXE in remote machine
Do you mean the client side?
Manas Bhardwaj Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
-
madancode wrote:
I have to run an EXE in remote machine, exe will be present in same remote machine just i have to initiate that EXE through my code. I am using ASp.Net with C#
You want to execute EXE on Client System? If yes... ActiveX or Applet is one option. Javascript does not have the sufficient rights to execute exe on clients.
cheers, Abhijit CodeProject MVP Web Site:abhijitjana.net View My Recent Article
-
I have to run an EXE in remote machine, exe will be present in same remote machine just i have to initiate that EXE through my code. I am using ASp.Net with C# Can you help me to solve this problem by providing steps/code for this need...
Hi, have a look at the system.diagnostics.process class. Using this you can start an exe-file. You will need to set the user for the process. If you do not, the process will run using the ASPNET-account (or networkservice, depending on IIS version). Regards Sebastian
It's not a bug, it's a feature! Check out my CodeProject article Permission-by-aspect. Me in Softwareland.
-
Thanks for the reply abhijit, Not in client machine. ExE is in separate remote system, i have to run their(File residing remote system) only
madancode wrote:
i have to run their(File residing remote system) only
If you have all the necessary permission on the remote machine, you can use the System.Management functions to do this. Here [^]is a nice article on it.
Manas Bhardwaj Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
-
madancode wrote:
i have to run their(File residing remote system) only
If you have all the necessary permission on the remote machine, you can use the System.Management functions to do this. Here [^]is a nice article on it.
Manas Bhardwaj Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
-
Hi, have a look at the system.diagnostics.process class. Using this you can start an exe-file. You will need to set the user for the process. If you do not, the process will run using the ASPNET-account (or networkservice, depending on IIS version). Regards Sebastian
It's not a bug, it's a feature! Check out my CodeProject article Permission-by-aspect. Me in Softwareland.
-
I have tried by giving user name and password of Remote system, in process and and in machine.config file in tag. It gives me login failure(Error would be like Login failuer:Bad user name or password), but username and password are correct.
Are the ASP.NET app and the exe on the same machine?
It's not a bug, it's a feature! Check out my CodeProject article Permission-by-aspect. Me in Softwareland.
-
Are the ASP.NET app and the exe on the same machine?
It's not a bug, it's a feature! Check out my CodeProject article Permission-by-aspect. Me in Softwareland.
-
No...Both are in separate system.I can able to run the EXE, while residing in same systems. But here i have to run the EXE in remote system(ExE file present in the same remote system).
Then the class will not work... The login is for the ASP.NET machine, not for your machine with the exe...
It's not a bug, it's a feature! Check out my CodeProject article Permission-by-aspect. Me in Softwareland.
-
Then the class will not work... The login is for the ASP.NET machine, not for your machine with the exe...
It's not a bug, it's a feature! Check out my CodeProject article Permission-by-aspect. Me in Softwareland.
-
I have tried by giving user name and password of Remote system, in process and and in machine.config file in tag. It gives me login failure(Error would be like Login failuer:Bad user name or password), but username and password are correct.
-
I have to run an EXE in remote machine, exe will be present in same remote machine just i have to initiate that EXE through my code. I am using ASp.Net with C# Can you help me to solve this problem by providing steps/code for this need...