Reputation: 1792
a very simple batch file
@echo off
START "C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE\devenv.exe"
I'm trying to use a batch file to launch visual studio, where normally I double click on this executable. When run this batch it instead launches visual studio's command line instead of the actual application.
What am I doing wrong?
Upvotes: 0
Views: 132
Reputation: 26
Check start /?
. You'll note the command looks like this: start ["title"] ... [command/program]
.
Unfortunately this means that just a quoted string gets interpreted as a title and not as a command.
If you insert a dummy title it should be ok.
Upvotes: 1