How do I execute a batch file remotely?

R

rsine

I need to execute a batch file (.bat) on a remote system. Can this be
done? I have been trying to use the System.Diagnostics.Process.Start
with no success. So, I am wondering if I am using the wrong class,
not using it properly, or it simply is not possible. Any guidance
would be appreciated.

-Thanks
 
M

Michael Letterle

I need to execute a batch file (.bat) on a remote system. Can this be
done? I have been trying to use the System.Diagnostics.Process.Start
with no success. So, I am wondering if I am using the wrong class,
not using it properly, or it simply is not possible. Any guidance
would be appreciated.

-Thanks

Look at the Sysinternal PSExec utility (now owned by Microsoft!):
http://www.microsoft.com/technet/sysinternals/ProcessesAndThreads/PsExec.mspx

If you have to do it programtically yourself, this blog link should
help: http://weblogs.asp.net/steveschofie...remote-machine-passing-credentials_2E00_.aspx
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top