In alt.windows7.general, on Sun, 04 Oct 2015 15:35:53 +1300, Ralph Fox
Post by Ralph FoxPost by mickyYou wouldn't know how to make a program opened this way open
*maximized*, would you? (I"ve installed Autosizer and MaxAll and
neither seem so far to make every program open maximized.)
Let's say the registry command line for opening .pps files looks like this
"C:\Program Files (x86)\OpenOffice 4\program\simpress.exe" -o "%1"
What you can do is this
1) Create a batch file "pps_maximized.bat" which contains the following four lines
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
START /MAX "C:\Program Files (x86)\OpenOffice 4\program\simpress.exe" -o "%1"
IF NOT ERRORLEVEL 1 GOTO DONE
PAUSE
:DONE
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
The first line is the same as the original command line, with START /MAX added
at the beginning.
2) Change the registry command line for opening .pps files to look like this
"C:\...yadda...\pps_maximized.bat" "%1"
where "C:\...yadda...\pps_maximized.bat" is the full path to the batch file
"pps_maximized.bat".
It doesn't work if you simply put the START /MAX directly into the registry.
Darn, I wrote the whole post below, and did all the things it describes,
only now to see that I misread your last line, even though it's
perfectly clear. I read it as, "If it doesn't work, you simply...."
Same words, different order.
This accounts for why you didn't make your last line the preferred
option. I wondered about that, but didn't reread the sentence. ;-(
Risky to inject politics, but still: This reminds me of Jeb Bush
agreeing that: "Knowing what you know now", he still would have invaded
Iraq. He heard that is, Knowing what you knew then. Still a
mistake, but not the level some in the press made it out to be. (I'm
speaking neutrally, not as a supporter of his. Risky to inject
politics, but I think few people hate or love him, so less risky.)
I just wanted to report back:
No great success but I am not deterred.
Your option 2 seemed simpler, so I searched the registry for occurrences
of "notepad".
Some started with @, as in @%SystemRoot%\System32\NOTEPAD.EXE %1
I wasn't sure what that meant or where to put start /max, before or
after the @, so I kept going until
HKEY_LOCAL_MACHINE\SOFTWARE\Classes\batfile\shell\edit\command
Plainly, this was the instruction that right clicking gives for editing
a batfile. I added START /MAX and tried it, and it gave me a list of
programs to use. Apparently I had screwed it up. I put it back the
way it was. I never closed regedit, but even if I had, one
advantage of Vista over XP, or maybe over 98 is that when re-opening,
regedit goes to the previous location. Also, I'm sure if I left it
screwed up but chose Notepad, it would have reset it as it is now.
It will take longer to try option 1, though once I get it for one file
type, it will take very little time for the others.
"Start /max notepad" works fine from a tcc/le (cmd-style) window.
I want almost all programs to open maximized, but two of the most common
are notepad and editpad lite. So for the time being, I just pulled the
borders of those two as far to the maximum as I could, and it seems to
be holding. Past experience tells me it won't hold forever, or there
are more than one way to call such a program, but I don't plan to be in
this box long anyhow. Either going back to XP or to 7.
No promises but I'll report back again later!
Now I see I was chasing an imaginary fox, but at least I found the right
line in the registry, for later.