Powered by Blogger.

Run a Visual Studio project in another PC via command prompt

Saturday, May 23, 2015

First we need to access Visual Studio (VS) Developer Command Prompt (DCP) in the remote machine via the regular prompt. Accessing VS DCP is explained here.

This link shows how to debug a VS project via DCP.

Assuming now we have a .exe file in the Debug folder, we can use the following code now to run the application remotely.

C:\Users\source_user_name>psexec -i \\destination_ip -u destination_user -p destination_password "C:\Users\destination_user\Documents\Visual Studio 2012\Projects\my_roject\my_roject\bin\Debug\my_application.exe"

No comments: