Maximising Notepad Window (Win7HP)

User avatar
ChrisGreaves
PlutoniumLounger
Posts: 15587
Joined: 24 Jan 2010, 23:23
Location: brings.slot.perky

Maximising Notepad Window (Win7HP)

Post by ChrisGreaves »

I double-click on my Proje.LOG file and Win7HP annoys the heck out of me by opening it NOT in full-window mode.

I believe in maximising windows on the grounds that my eyes are faster than my fingers. I can scan a screen quickly, but using PgDn is relatively slow.

The web pageNotepad files always open as a very small window - Stack Overflow.htm” advises me that:-
(1) One solution would be to “... create shortcut for every single notepad file?”
(2) I can “Resize window to the desired size and position”, but I don’t want a re-sized to-be-large window. I want it maximised.
(3) I can “Resize window to the desired size and position”, but I don’t want a specific solution. I want Notepad to open a maximised window not just when I manually open Notepad.exe; I want the maximised window whenever I execute a TXT, LOG, BAS, CLS or any other generic text file.

From that same page I have learned how to create a .CMD file containing

Code: Select all

cmd.exe /c start /max C:\Windows\system32\Notepad.exe %1
and can now right-click and use Open With on a specific file type (for example, on a LOG file) and “Choose default program”.
Notepad001.png
So far so good, from now on, executing any LOG file yields a maximised window.
But I would rather not repeat this “Choose Default Program” step with every new type of text file I encounter.
Notepad002.png
My current list of notepad-associated extents is disgustingly large, and grows with each project I develop. (OK, OK, files of type *.BIN20161203_1053 were a mistake. They no longer exist and I am in the market for a registry cleaner)
But still and all I’d like to do away with Notepad.exe completely as a file-opening mechanism and replace it with my new-found friend Notepad.cmd.

My options seem to be:-
(1) Perform some devious registry hack with RegEdit
(2) Somehow hide Notepad.exe from Win7HP and rename my Notepad.cmd as Notepad.exe. That is, fool Windows.
(3) Other suggestions?

I think an added complication arises with BAT files. I want to run/execute them with the old CMD process, and that happens right now. But when I right-click to edit a bat file, I want it to be Notepad.cmd that edits the file, with its maximised window, not notepad.exe.

Cheers Chris
You do not have the required permissions to view the files attached to this post.
There's nothing heavier than an empty water bottle

User avatar
HansV
Administrator
Posts: 78412
Joined: 16 Jan 2010, 00:14
Status: Microsoft MVP
Location: Wageningen, The Netherlands

Re: Maximising Notepad Window (Win7HP)

Post by HansV »

May I suggest Notepad++ as replacement for Notepad?
- It is free
- It supports multiple tabs
- It remembers the window state from session to session
- It supports many programming languages, among which Visual Basic
- You can easily associate it with many file types in its Settings > Preferences dialog
- Etc. etc.
Best wishes,
Hans

User avatar
ChrisGreaves
PlutoniumLounger
Posts: 15587
Joined: 24 Jan 2010, 23:23
Location: brings.slot.perky

Re: Maximising Notepad Window (Win7HP)

Post by ChrisGreaves »

HansV wrote:May I suggest Notepad++ as replacement for Notepad?
To answer your question Hans, Yes, you may!
I have d/l a copy and will play with it in my Copious Free Time(TM)

In the meantime, I'd be interested to hear your answers to my questions (grin!)
Cheers
Chris
There's nothing heavier than an empty water bottle

User avatar
HansV
Administrator
Posts: 78412
Joined: 16 Jan 2010, 00:14
Status: Microsoft MVP
Location: Wageningen, The Netherlands

Re: Maximising Notepad Window (Win7HP)

Post by HansV »

I myself wouldn't bother trying to coerce Notepad to do what you describe. (Mostly because I have no idea how)
Best wishes,
Hans

User avatar
ChrisGreaves
PlutoniumLounger
Posts: 15587
Joined: 24 Jan 2010, 23:23
Location: brings.slot.perky

Re: Maximising Notepad Window (Win7HP)

Post by ChrisGreaves »

HansV wrote:I myself wouldn't bother trying to coerce Notepad to do what you describe. (Mostly because I have no idea how)
OK. Thanks.
The question remains over my head owing to the number of times clients have refused to install superior software "because it is not Microsoft" or "It might be infected". :sad:
There's nothing heavier than an empty water bottle

User avatar
John Gray
PlatinumLounger
Posts: 5406
Joined: 24 Jan 2010, 08:33
Location: A cathedral city in England

Re: Maximising Notepad Window (Win7HP)

Post by John Gray »

ChrisGreaves wrote:The question remains over my head owing to the number of times clients have refused to install superior software "because it is not Microsoft" or "It might be infected".
Clearly some of your clients do not trust your advice...!
Last edited by John Gray on 05 Jan 2017, 18:55, edited 1 time in total.
John Gray

"(or one of the team)" - how your appointment letter indicates you won't be seeing the Consultant...

User avatar
HansV
Administrator
Posts: 78412
Joined: 16 Jan 2010, 00:14
Status: Microsoft MVP
Location: Wageningen, The Netherlands

Re: Maximising Notepad Window (Win7HP)

Post by HansV »

HansV wrote? :scratch:

You somehow managed to attribute the statement written by Chris to me...
Best wishes,
Hans

User avatar
John Gray
PlatinumLounger
Posts: 5406
Joined: 24 Jan 2010, 08:33
Location: A cathedral city in England

Re: Maximising Notepad Window (Win7HP)

Post by John Gray »

Too many quotes, I'm afraid - now fixed...
John Gray

"(or one of the team)" - how your appointment letter indicates you won't be seeing the Consultant...

User avatar
ChrisGreaves
PlutoniumLounger
Posts: 15587
Joined: 24 Jan 2010, 23:23
Location: brings.slot.perky

Re: Maximising Notepad Window (Win7HP)

Post by ChrisGreaves »

John Gray wrote:Clearly some of your clients do not trust your advice...!
The folks who hire me trust me (with some amazingly confidential stuff), but the organization, either the CEO or the CTO, or some other bunch of old fogeys, refuse to allow installation of any software not written by MSoft.

The low point in my work was an eight-week contract for a huge pharmaceutical company who hired me to develop VBA for an Excel Workbook project, but would not allow the installation of my VBA library code.
Basically, eight weeks at $1,000/day to sit and do nothing much ...

I feel confident that some others in EL have been through the same ridiculous constraints.

I still have my 1985 copy of CED.COM .....

Cheers
Chris
There's nothing heavier than an empty water bottle