Robolisk
Robolisk

Reputation: 1792

batch command to execute Visual Studio starts as cmd instead of launching

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

Answers (1)

dave
dave

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

Related Questions