GeneralVista starting new window when opening .tex

General information and discussion about TeXnicCenter
Post Reply
potternharry
Posts: 3
Joined: Tue Apr 15, 2008 11:42 am

Vista starting new window when opening .tex

Post by potternharry »

When I open a .tex-file windows vista starts a new texniccenter window - how can I open all files from the explorer in the same texniccenter window?

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics TikZによるLaTeXグラフィックス
User avatar
T3.
Posts: 208
Joined: Fri Mar 14, 2008 12:58 pm

Vista starting new window when opening .tex

Post by T3. »

What you want is not the default behaviour of TeXnicCenter instalation and there is no option for this, AFAIK. However, it can be done with a registry tweak if you're not afraid of that sort of thing. Here's how to do it.

You need to change the command that it's used for opening .tex files. To locate that command in the registry see my other post in this thread.
You should have something like this:

Code: Select all

"C:\path\to\where\you\have\TEXCNTR.EXE" "%1"
Change it to:

Code: Select all

"C:\path\to\where\you\have\TEXCNTR.EXE" /ddecmd "[goto('%1', '1')]"
This will use DDE interface of TeXnicCenter in the same way as for inverse search in Yap. I tested it by putting the above line in a batch file and drag-and-dropping some file onto it. It worked with the caveat that, when TeXnicCenter window was minimized, it wasn't activated (the same happened for inverse search in Yap, so it's probably some Vista incompatibility).

Caution! As others reported using TeXnicCenter's DDE will cause problems for file names that contain the apostrophe character ' so have that in mind.

Edit: added link
potternharry
Posts: 3
Joined: Tue Apr 15, 2008 11:42 am

Re: Vista starting new window when opening .tex

Post by potternharry »

thanks, but that doesn't realy work, the first tex-file is opened, the others don't show any reaction ...
User avatar
T3.
Posts: 208
Joined: Fri Mar 14, 2008 12:58 pm

Re: Vista starting new window when opening .tex

Post by T3. »

:?: Strange. I've just tried that on my system and it works as long as TeXnicCenter window is not minimized in which case it just crashes. Oh, well, Vista joys ;)
potternharry
Posts: 3
Joined: Tue Apr 15, 2008 11:42 am

Re: Vista starting new window when opening .tex

Post by potternharry »

its strange, my minimized TeXnicCenter doesn't crash ...
User avatar
T3.
Posts: 208
Joined: Fri Mar 14, 2008 12:58 pm

Re: Vista starting new window when opening .tex

Post by T3. »

That's probably because you forgot to install your Genuine Advantage Tool. I'm sure that this will fix that glitch and you will enjoy the same enhanced user experience as I do ;)
Post Reply