Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Create a batch file to open a visual studio 2010 solution

I need to create a batch file that will open a Visual studio 2010 solution located at

C:\testProject\Test.sln file.

What I tried is

devenv.exe "C:\testProject\Test.sln"

This does not works as expected and tries to open the solution in VS2008(which is also installed in my machine).

Can anyone please let me know how to make system understand that I need to open VS 2010 and not 2008

like image 502
Gautam Avatar asked Mar 14 '26 09:03

Gautam


1 Answers

Specify the correct path, not just the executable...

c:\xxx\xxx\xxx\devenv.exe "C:\testProject\Test.sln"
like image 94
Louis van Tonder Avatar answered Mar 15 '26 22:03

Louis van Tonder



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!