Yes, but that would be wrong.

1. Query the registry for the current notepad font, and save it.
2. Modify the registry to use the font you prefer.
3. Launch notepad MyFile.txt using the RUN command (no need to shellexecute
if you're not depending on the shell to match the filetype to the handler)
4. Wait a respectable amount of time for Notepad to launch with your
preferred font.
5. Restore the registry value to the value you saved in #1.

On Thu, Jun 20, 2013 at 4:38 PM, Sytze de Boer <[email protected]> wrote:

> Is there a way to shellexecute and always open a TXT file with Notepad,
> with a specific Font ?
>

Why not something (this is meta-code, use the reference for syntax) along
the lines of:

DEFINE WINDOW FRED from 0,0 to 600,800 FONT "Courier New, 12"
MODIFY FILE MyFile.txt IN WINDOW FRED NOMODIFY NOWAIT



-- 
Ted Roche
Ted Roche & Associates, LLC
http://www.tedroche.com


--- StripMime Report -- processed MIME parts ---
multipart/alternative
  text/plain (text body -- kept)
  text/html
---

_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox
OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: 
http://leafe.com/archives/byMID/profox/cacw6n4ta2f5fvsukjiu373rmropryn-swmkc6tq5x7rxg9k...@mail.gmail.com
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to