0

I'm looking at this SO post and trying to apply it in my scenario.

My batch file is as follows:

@echo off
REM // https://stackoverflow.com/a/39084914/122687
set QT_OPENGL=angle
start "D:\ProgramFilesOnD_NoSpaces\Qt\Qt5.7.0\Tools\QtCreator\bin\qtcreator.exe"

And I've created a shortcut (pinned to the Windows 7 start menu) that points to this batch file.

When I click the shortcut, the following happens:

  • а command prompt window appears for an instant, then it disappears
  • another command prompt windows appears. It doesn't disappear, and it looks like this:

screenshot

  • Nothing else happens.

Any idea what's going wrong?

Community
  • 1
  • 1
Stefan Monov
  • 11,332
  • 10
  • 63
  • 120
  • 3
    Put `""` in between `start` and the remaining command line, as `start` may interpret the first quoted string as a window title... – aschipfl Aug 22 '16 at 17:43
  • @aschipfl: Not a duplicate. I'm not trying to pass any parameters to Qt Creator. – Stefan Monov Aug 23 '16 at 10:34
  • Don't focus on the arguments, look at the quotation issue described in the [accepted answer](http://stackoverflow.com/a/154090)... – aschipfl Aug 23 '16 at 10:37
  • @aschipfl: The answer there does solve my problem, but the *question* is not a duplicate ;) Anyway, thanks for pointing me in that direction. – Stefan Monov Aug 23 '16 at 10:40
  • 1
    @aschipfl: Ah, now I read that under SO's definition of a duplicate, my question is indeed a duplicate. I marked it as such, thanks. – Stefan Monov Aug 23 '16 at 10:46

0 Answers0