How to open file in a running instance?

Hello.

I have VCExpress and I've found switch "/Edit":
/Edit Opens the specified files in a running instance of this
application. If there are no running instances, it will
start a new instance with a simplified window layout.

But it doesn't work. If I open file from cmd.exe each file will open a new instance. How to use it




Answer this question

How to open file in a running instance?

  • Bob Groger

    It doesn't work even if that files are exist. In fact, if they aren't exist vcexpress won't create them, but starts two new instances anyway


  • jerome1234

    Please log a bug at http://lab.msdn.microsoft.com/productfeedback/default.aspx so that the owners can take a look at it.

    Thanks,
    Ayman Shoukry
    VC++ Team


  • Terry OReilly

    I meant IDE. VCExpress.exe / returns help message which I wrote above.
    For example assume that we have running cmd.exe and execute two commands:
    VCExpress myfile1.cpp /Edit starts a new instance of IDE.
    VCExpress myfile2.cpp /Edit has to open the file in the same instance of IDE as a new tab, but it doesn't. It starts a new instance again.



  • Jase555

    The /Edit switch is for which tool Could you include more details

    Thanks,
    Ayman Shoukry
    VC++ Team


  • MiltInMadison

    Silly question, they are two existing files aren't they This works with files that exist, but it fails for non-existant files.

    If they both exist, then maybe its a problem with VCExpress.exe, since i tried it with DevEnv.

     



  • How to open file in a running instance?