Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

Harrison's Postulate: For every action, there is an equal and opposite criticism.


computers / alt.windows7.general / Reloading a changed a wordpad document ?

SubjectAuthor
* Reloading a changed a wordpad document ?R.Wieser
+* Re: Reloading a changed a wordpad document ?Char Jackson
|`- Re: Reloading a changed a wordpad document ?R.Wieser
+* Re: Reloading a changed a wordpad document ?Paul
|`* Re: Reloading a changed a wordpad document ?R.Wieser
| `* Re: Reloading a changed a wordpad document ?Paul
|  `- Re: Reloading a changed a wordpad document ?R.Wieser
+- Re: Reloading a changed a wordpad document ?VanguardLH
+* Re: Reloading a changed a wordpad document ?Newyana2
|`* Re: Reloading a changed a wordpad document ?R.Wieser
| `* Re: Reloading a changed a wordpad document ?J. P. Gilliver
|  +- Re: Reloading a changed a wordpad document ?Char Jackson
|  `* Re: Reloading a changed a wordpad document ?R.Wieser
|   +* Re: Reloading a changed a wordpad document ?J. P. Gilliver
|   |`* Re: Reloading a changed a wordpad document ?R.Wieser
|   | +* Re: Reloading a changed a wordpad document ?J. P. Gilliver
|   | |`* Re: Reloading a changed a wordpad document ?R.Wieser
|   | | `* Re: Reloading a changed a wordpad document ?J. P. Gilliver
|   | |  `- Re: Reloading a changed a wordpad document ?R.Wieser
|   | `* Re: Reloading a changed a wordpad document ?VanguardLH
|   |  +* Re: Reloading a changed a wordpad document ?J. P. Gilliver
|   |  |+- Re: Reloading a changed a wordpad document ?R.Wieser
|   |  |`- Re: Reloading a changed a wordpad document ?VanguardLH
|   |  `* Re: Reloading a changed a wordpad document ?R.Wieser
|   |   `* Re: Reloading a changed a wordpad document ?VanguardLH
|   |    +* Re: Reloading a changed a wordpad document ?Newyana2
|   |    |`* Re: Reloading a changed a wordpad document ?R.Wieser
|   |    | `* Re: Reloading a changed a wordpad document ?Paul
|   |    |  +* Re: Reloading a changed a wordpad document ?R.Wieser
|   |    |  |`* Re: Reloading a changed a wordpad document ?J. P. Gilliver
|   |    |  | `* Re: Reloading a changed a wordpad document ?R.Wieser
|   |    |  |  `* Re: Reloading a changed a wordpad document ?J. P. Gilliver
|   |    |  |   `- Re: Reloading a changed a wordpad document ?R.Wieser
|   |    |  `* Re: Reloading a changed a wordpad document ?Newyana2
|   |    |   `- Re: Reloading a changed a wordpad document ?Paul
|   |    +* Re: Reloading a changed a wordpad document ?Paul
|   |    |`* Re: Reloading a changed a wordpad document ?VanguardLH
|   |    | +- Re: Reloading a changed a wordpad document ?VanguardLH
|   |    | `* Re: Reloading a changed a wordpad document ?Newyana2
|   |    |  `* Re: Reloading a changed a wordpad document ?J. P. Gilliver
|   |    |   +* Re: Reloading a changed a wordpad document ?Newyana2
|   |    |   |`- Re: Reloading a changed a wordpad document ?J. P. Gilliver
|   |    |   `* Re: Reloading a changed a wordpad document ?VanguardLH
|   |    |    `- Re: Reloading a changed a wordpad document ?J. P. Gilliver
|   |    `* Re: Reloading a changed a wordpad document ?R.Wieser
|   |     `* Re: Reloading a changed a wordpad document ?VanguardLH
|   |      `* Re: Reloading a changed a wordpad document ?R.Wieser
|   |       `* Re: Reloading a changed a wordpad document ?VanguardLH
|   |        `* Re: Reloading a changed a wordpad document ?R.Wieser
|   |         +* Re: Reloading a changed a wordpad document ?VanguardLH
|   |         |`* Re: Reloading a changed a wordpad document ?R.Wieser
|   |         | `* Re: Reloading a changed a wordpad document ?R.Wieser
|   |         |  `* Re: Reloading a changed a wordpad document ?Kerr-Mudd, John
|   |         |   `* Re: Reloading a changed a wordpad document ?R.Wieser
|   |         |    `* Re: Reloading a changed a wordpad document ?Newyana2
|   |         |     `- Re: Reloading a changed a wordpad document ?R.Wieser
|   |         `- Re: Reloading a changed a wordpad document ?R.Wieser
|   `* Re: Reloading a changed a wordpad document ?VanguardLH
|    +* Re: Reloading a changed a wordpad document ?John
|    |`- Re: Reloading a changed a wordpad document ?J. P. Gilliver
|    `* Re: Reloading a changed a wordpad document ?R.Wieser
|     `* Re: Reloading a changed a wordpad document ?VanguardLH
|      `* Re: Reloading a changed a wordpad document ?R.Wieser
|       +* Re: Reloading a changed a wordpad document ?J. P. Gilliver
|       |`- Re: Reloading a changed a wordpad document ?R.Wieser
|       `* Re: Reloading a changed a wordpad document ?VanguardLH
|        `* Re: Reloading a changed a wordpad document ?R.Wieser
|         `- Re: Reloading a changed a wordpad document ?VanguardLH
+* Re: Reloading a changed a wordpad document ?Paul
|`* Re: Reloading a changed a wordpad document ?R.Wieser
| `* Re: Reloading a changed a wordpad document ?Paul
|  `- Re: Reloading a changed a wordpad document ?R.Wieser
+- Re: Reloading a changed a wordpad document ? ConclusionR.Wieser
`* Re: Reloading a changed a wordpad document ?Frank Slootweg
 `* Re: Reloading a changed a wordpad document ?R.Wieser
  `* Re: Reloading a changed a wordpad document ?Frank Slootweg
   `* Re: Reloading a changed a wordpad document ?R.Wieser
    `* Re: Reloading a changed a wordpad document ?Frank Slootweg
     `- Re: Reloading a changed a wordpad document ?R.Wieser

Pages:1234
Reloading a changed a wordpad document ?

<utrcug$vpml$1@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=7927&group=alt.windows7.general#7927

  copy link   Newsgroups: alt.comp.os.windows-xp alt.windows7.general
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: addr...@is.invalid (R.Wieser)
Newsgroups: alt.comp.os.windows-xp,alt.windows7.general
Subject: Reloading a changed a wordpad document ?
Date: Mon, 25 Mar 2024 09:34:10 +0100
Organization: A noiseless patient Spider
Lines: 19
Message-ID: <utrcug$vpml$1@dont-email.me>
Injection-Date: Mon, 25 Mar 2024 09:34:25 +0100
Injection-Info: dont-email.me; posting-host="a2f4543ed7b0120edbfbd01dcff45834";
logging-data="1042133"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18Ra+QzUIotKrtwO/OOu0u3G12vgvOre8AbXxvkcIscEg=="
Cancel-Lock: sha1:QVUJJT5RhcrCOh2uWVifDrQUOSo=
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5512
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.5512
X-Priority: 3
X-RFC2646: Format=Flowed; Original
 by: R.Wieser - Mon, 25 Mar 2024 08:34 UTC

Hello all,

I've got a program which generates a wordpad document, which I than open by
double-clicking it.

The problem is that when the document is open and I re-generate the document
and double-click it I still see the old contents. To see the new contents I
have to close the old, still-open document first.

Question:
Is there a way to override this behaviour using a command-line argument ?
Even just having two document windows open would be an improvement.

remark: I prefer /not/ to use taskkill.

Regards,
Rudy Wieser

Re: Reloading a changed a wordpad document ?

<kpf20jt4cqs7s0b2buahh4t4c81p4bp85i@4ax.com>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=7928&group=alt.windows7.general#7928

  copy link   Newsgroups: alt.comp.os.windows-xp alt.windows7.general
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!npeer.as286.net!npeer-ng0.as286.net!peer02.ams1!peer.ams1.xlned.com!news.xlned.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!fx09.iad.POSTED!not-for-mail
From: non...@none.invalid (Char Jackson)
Newsgroups: alt.comp.os.windows-xp,alt.windows7.general
Subject: Re: Reloading a changed a wordpad document ?
Message-ID: <kpf20jt4cqs7s0b2buahh4t4c81p4bp85i@4ax.com>
References: <utrcug$vpml$1@dont-email.me>
X-Newsreader: Forte Agent 6.00/32.1186
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Lines: 22
X-Complaints-To: abuse(at)newshosting.com
NNTP-Posting-Date: Mon, 25 Mar 2024 09:13:34 UTC
Organization: Newshosting.com - Highest quality at a great price! www.newshosting.com
Date: Mon, 25 Mar 2024 04:13:34 -0500
X-Received-Bytes: 1628
 by: Char Jackson - Mon, 25 Mar 2024 09:13 UTC

On Mon, 25 Mar 2024 09:34:10 +0100, "R.Wieser" <address@is.invalid> wrote:

>Hello all,
>
>I've got a program which generates a wordpad document, which I than open by
>double-clicking it.
>
>The problem is that when the document is open and I re-generate the document
>and double-click it I still see the old contents. To see the new contents I
>have to close the old, still-open document first.
>
>Question:
>Is there a way to override this behaviour using a command-line argument ?
>Even just having two document windows open would be an improvement.
>
>remark: I prefer /not/ to use taskkill.

Does it have to be WordPad? Notepad++, by default, throws up a small info box to
let you know that the underlying document has been changed, and would you like
to reload it to see the changes (Yes/No). I don't know how to do that in
WordPad.

Re: Reloading a changed a wordpad document ?

<utrqg7$134b3$1@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=7930&group=alt.windows7.general#7930

  copy link   Newsgroups: alt.comp.os.windows-xp alt.windows7.general
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: addr...@is.invalid (R.Wieser)
Newsgroups: alt.comp.os.windows-xp,alt.windows7.general
Subject: Re: Reloading a changed a wordpad document ?
Date: Mon, 25 Mar 2024 13:25:28 +0100
Organization: A noiseless patient Spider
Lines: 12
Message-ID: <utrqg7$134b3$1@dont-email.me>
References: <utrcug$vpml$1@dont-email.me> <kpf20jt4cqs7s0b2buahh4t4c81p4bp85i@4ax.com>
Injection-Date: Mon, 25 Mar 2024 13:25:44 +0100 (CET)
Injection-Info: dont-email.me; posting-host="a2f4543ed7b0120edbfbd01dcff45834";
logging-data="1151331"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19LytrbYj+U+n2hqS6Fm+m98zsCMTbqGTpgzlwxxhustg=="
Cancel-Lock: sha1:CZ1I1eRVBxoduxCEHO936OMGxrE=
X-Newsreader: Microsoft Outlook Express 6.00.2900.5512
X-MSMail-Priority: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5512
X-RFC2646: Format=Flowed; Original
X-Priority: 3
 by: R.Wieser - Mon, 25 Mar 2024 12:25 UTC

Char,

> Does it have to be WordPad? Notepad++, by default, [snip]

I could do that, but that means that *all* the documents with that
particular extension will be opened by it. And thats not what I'm looking
for.

Regards,
Rudy Wieser

Re: Reloading a changed a wordpad document ?

<uts3g9$158kb$1@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=7932&group=alt.windows7.general#7932

  copy link   Newsgroups: alt.comp.os.windows-xp alt.windows7.general
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: nos...@needed.invalid (Paul)
Newsgroups: alt.comp.os.windows-xp,alt.windows7.general
Subject: Re: Reloading a changed a wordpad document ?
Date: Mon, 25 Mar 2024 10:59:20 -0400
Organization: A noiseless patient Spider
Lines: 32
Message-ID: <uts3g9$158kb$1@dont-email.me>
References: <utrcug$vpml$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit
Injection-Date: Mon, 25 Mar 2024 15:59:22 +0100 (CET)
Injection-Info: dont-email.me; posting-host="aa4cba4e21284a77aca5700b133c393d";
logging-data="1221259"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/j93+5jer1zS2IS+krG3qBKGFJAU1Kaps="
User-Agent: Ratcatcher/2.0.0.25 (Windows/20130802)
Cancel-Lock: sha1:fyUH3udGxSM2oV6TATtsmjhkw3A=
Content-Language: en-US
In-Reply-To: <utrcug$vpml$1@dont-email.me>
 by: Paul - Mon, 25 Mar 2024 14:59 UTC

On 3/25/2024 4:34 AM, R.Wieser wrote:
> Hello all,
>
> I've got a program which generates a wordpad document, which I than open by
> double-clicking it.
>
> The problem is that when the document is open and I re-generate the document
> and double-click it I still see the old contents. To see the new contents I
> have to close the old, still-open document first.
>
> Question:
> Is there a way to override this behaviour using a command-line argument ?
> Even just having two document windows open would be an improvement.
>
> remark: I prefer /not/ to use taskkill.
>
> Regards,
> Rudy Wieser

Do you have the source code for this program ?

It might be possible to fix the situation with some source editing.

outputfilename-Mar25-2024-1058AM.doc
\------------/ \---------------/

Etcetera.

Paul

Re: Reloading a changed a wordpad document ?

<uts9t3$16s55$1@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=7934&group=alt.windows7.general#7934

  copy link   Newsgroups: alt.comp.os.windows-xp alt.windows7.general
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: addr...@is.invalid (R.Wieser)
Newsgroups: alt.comp.os.windows-xp,alt.windows7.general
Subject: Re: Reloading a changed a wordpad document ?
Date: Mon, 25 Mar 2024 17:48:25 +0100
Organization: A noiseless patient Spider
Lines: 17
Message-ID: <uts9t3$16s55$1@dont-email.me>
References: <utrcug$vpml$1@dont-email.me> <uts3g9$158kb$1@dont-email.me>
Injection-Date: Mon, 25 Mar 2024 17:48:35 +0100 (CET)
Injection-Info: dont-email.me; posting-host="a2f4543ed7b0120edbfbd01dcff45834";
logging-data="1274021"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+d9usTpbdtlc8cdisttstCl4O14svI3JVdO6bEVdl8bw=="
Cancel-Lock: sha1:GwSHdmU1AF/Qg22l8QiAZrGfKLk=
X-RFC2646: Format=Flowed; Original
X-Newsreader: Microsoft Outlook Express 6.00.2900.5512
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5512
X-Priority: 3
X-MSMail-Priority: Normal
 by: R.Wieser - Mon, 25 Mar 2024 16:48 UTC

Paul,

> It might be possible to fix the situation with some source editing.
>
> outputfilename-Mar25-2024-1058AM.doc
> \------------/ \---------------/

I was also considering something in that direction, but that would leave me
with ever more files I would need to clean up.

The thing is that I've already gone over a few options, but wanted to check
if there perhaps is an easy, clean and build-in option already available.

Regards,
Rudy Wieser

Re: Reloading a changed a wordpad document ?

<vdvl7tuiv15j.dlg@v.nguard.lh>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=7940&group=alt.windows7.general#7940

  copy link   Newsgroups: alt.comp.os.windows-xp alt.windows7.general
Path: i2pn2.org!i2pn.org!newsfeed.endofthelinebbs.com!weretis.net!feeder6.news.weretis.net!feeder8.news.weretis.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: V...@nguard.LH (VanguardLH)
Newsgroups: alt.comp.os.windows-xp,alt.windows7.general
Subject: Re: Reloading a changed a wordpad document ?
Date: Mon, 25 Mar 2024 15:22:21 -0500
Organization: Usenet Elder
Lines: 40
Sender: V@nguard.LH
Message-ID: <vdvl7tuiv15j.dlg@v.nguard.lh>
References: <utrcug$vpml$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
X-Trace: individual.net 7frJ1iuYquXUVJuM+2k5eA/TRzJsF+ek9iVrCYxKilmMl1eC9A
Keywords: VanguardLH,VLH
Cancel-Lock: sha1:lsdzNBE4pDxZWwxvPAC+ucrK+y8= sha256:pdlmQFPjW5oMPz0EkJaNQtnEN93yPSbCHb8NhHbe928=
User-Agent: 40tude_Dialog/2.0.15.41
 by: VanguardLH - Mon, 25 Mar 2024 20:22 UTC

"R.Wieser" <address@is.invalid> wrote:

> I've got a program which generates a wordpad document, which I than
> open by double-clicking it.

No such thing as a Wordpad filetype. Do you mean an RTF (Rich Text
Format) file, so you can have formatting since text doesn't? Is there
any formatting in the file (i.e., is it just a text file you could open
in Notepad)?

Other programs can open an RTF file, like Word, LibreOffice, and even
Wordpad. RTF is not solely a "Wordpad document".

> The problem is that when the document is open and I re-generate the
> document and double-click it I still see the old contents. To see
> the new contents I have to close the old, still-open document first.

You can't get your "program" to timestamp its output file, like
file_yymmddhhss (year, month, day, hour, seconds)? Then Wordpad would
have a different target to load instead of failing to open a locked
file. You have a file handle with write state since you already have it
opened for write in Wordpad. Wordpad is an editor, not a viewer.

The "program" should not be stepping atop an existing file (that it
created before) without a prompt asking for you to grant it to
overwrite. At the prompt, if properly coded, the program should allow
you to specify a different filename. What happens when the program
attempts to write to the same file, but it is locked (another process
has write access on the file, like an editor)? A write-locked file for
one process can still be read by another process, but other-process
writes should be blocked to prevent yanking away a document on which you
are currently working.

> Question: Is there a way to override this behaviour using a
> command-line argument ? Even just having two document windows open
> would be an improvement.

The only command-line argument I've heard of for wordpad.exe,
notepad.exe, and write.exe (other than a filespec) is /p which is
somehow used for printing.

Re: Reloading a changed a wordpad document ?

<utt5n6$1dbum$1@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=7944&group=alt.windows7.general#7944

  copy link   Newsgroups: alt.comp.os.windows-xp alt.windows7.general
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: nos...@needed.invalid (Paul)
Newsgroups: alt.comp.os.windows-xp,alt.windows7.general
Subject: Re: Reloading a changed a wordpad document ?
Date: Mon, 25 Mar 2024 20:43:18 -0400
Organization: A noiseless patient Spider
Lines: 23
Message-ID: <utt5n6$1dbum$1@dont-email.me>
References: <utrcug$vpml$1@dont-email.me> <uts3g9$158kb$1@dont-email.me>
<uts9t3$16s55$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit
Injection-Date: Tue, 26 Mar 2024 01:43:18 +0100 (CET)
Injection-Info: dont-email.me; posting-host="2a6546338bcb176708f553376e14da25";
logging-data="1486806"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+TYc5w5bi7fv34qIS+rSkSWdY55JF2xLU="
User-Agent: Ratcatcher/2.0.0.25 (Windows/20130802)
Cancel-Lock: sha1:Ix+STau9YWLiujENvlu/YUQv6k8=
Content-Language: en-US
In-Reply-To: <uts9t3$16s55$1@dont-email.me>
 by: Paul - Tue, 26 Mar 2024 00:43 UTC

On 3/25/2024 12:48 PM, R.Wieser wrote:
> Paul,
>
>> It might be possible to fix the situation with some source editing.
>>
>> outputfilename-Mar25-2024-1058AM.doc
>> \------------/ \---------------/
>
> I was also considering something in that direction, but that would leave me
> with ever more files I would need to clean up.
>
> The thing is that I've already gone over a few options, but wanted to check
> if there perhaps is an easy, clean and build-in option already available.
>
> Regards,
> Rudy Wieser

When sorted in order in File Explorer, the loser ones should
be easy to delete.

Paul

Re: Reloading a changed a wordpad document ?

<uttuf0$1md1i$1@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=7948&group=alt.windows7.general#7948

  copy link   Newsgroups: alt.comp.os.windows-xp alt.windows7.general
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: addr...@is.invalid (R.Wieser)
Newsgroups: alt.comp.os.windows-xp,alt.windows7.general
Subject: Re: Reloading a changed a wordpad document ?
Date: Tue, 26 Mar 2024 08:45:10 +0100
Organization: A noiseless patient Spider
Lines: 15
Message-ID: <uttuf0$1md1i$1@dont-email.me>
References: <utrcug$vpml$1@dont-email.me> <uts3g9$158kb$1@dont-email.me> <uts9t3$16s55$1@dont-email.me> <utt5n6$1dbum$1@dont-email.me>
Injection-Date: Tue, 26 Mar 2024 08:45:37 +0100 (CET)
Injection-Info: dont-email.me; posting-host="65b4f7e03bc8341bfbc0e87289ae13cc";
logging-data="1782834"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/XZqR2kwEI10y2+GXaLlW3a4mwm/Dsn/s5HpnX/yfhAw=="
Cancel-Lock: sha1:mh+HysTmecycQa+mXO5C4ZAUSHw=
X-RFC2646: Format=Flowed; Original
X-Newsreader: Microsoft Outlook Express 6.00.2900.5512
X-Priority: 3
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5512
X-MSMail-Priority: Normal
 by: R.Wieser - Tue, 26 Mar 2024 07:45 UTC

Paul,

> When sorted in order in File Explorer, the loser ones should
> be easy to delete.

True.

But I tend to try to do without that kind of work-arounds - though I will
ofcourse look at them if nothing better is available (which I'm currently
trying to figure out).

Regards,
Rudy Wieser

Re: Reloading a changed a wordpad document ?

<utug33$1qjnh$1@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=7952&group=alt.windows7.general#7952

  copy link   Newsgroups: alt.comp.os.windows-xp alt.windows7.general
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: Newya...@invalid.nospam (Newyana2)
Newsgroups: alt.comp.os.windows-xp,alt.windows7.general
Subject: Re: Reloading a changed a wordpad document ?
Date: Tue, 26 Mar 2024 08:46:16 -0400
Organization: A noiseless patient Spider
Lines: 27
Message-ID: <utug33$1qjnh$1@dont-email.me>
References: <utrcug$vpml$1@dont-email.me>
Injection-Date: Tue, 26 Mar 2024 13:46:28 +0100 (CET)
Injection-Info: dont-email.me; posting-host="d3a4b8d5efd5b52245cad628c5f073db";
logging-data="1920753"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/Y6jAux72kHWS7+gTKqopQdn7noARAk/c="
Cancel-Lock: sha1:MxpfIceqGsyRRxraF8nREd6p0mw=
X-MSMail-Priority: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5512
X-Newsreader: Microsoft Outlook Express 6.00.2900.5512
X-Priority: 3
 by: Newyana2 - Tue, 26 Mar 2024 12:46 UTC

"R.Wieser" <address@is.invalid> wrote

| I've got a program which generates a wordpad document, which I than open
by
| double-clicking it.
| | The problem is that when the document is open and I re-generate the
document
| and double-click it I still see the old contents. To see the new contents
I | have to close the old, still-open document first.
| | Question:
| Is there a way to override this behaviour using a command-line argument ?
| Even just having two document windows open would be an improvement.
| | remark: I prefer /not/ to use taskkill.
|

It's more practical with these issues if you explain what
you're trying to accomplish. Then people can brainstorm
the whole process. It also helps to weed out preconceptions,
like the man who's trying to figure out how to avoid getting
his newspaper wet, wtihout explaining that the problem is
a spraying kitchen faucet and not rain.

Re: Reloading a changed a wordpad document ?

<utumha$1s51g$1@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=7953&group=alt.windows7.general#7953

  copy link   Newsgroups: alt.comp.os.windows-xp alt.windows7.general
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!feeder8.news.weretis.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: addr...@is.invalid (R.Wieser)
Newsgroups: alt.comp.os.windows-xp,alt.windows7.general
Subject: Re: Reloading a changed a wordpad document ?
Date: Tue, 26 Mar 2024 15:35:47 +0100
Organization: A noiseless patient Spider
Lines: 49
Message-ID: <utumha$1s51g$1@dont-email.me>
References: <utrcug$vpml$1@dont-email.me> <utug33$1qjnh$1@dont-email.me>
Injection-Date: Tue, 26 Mar 2024 15:36:26 +0100 (CET)
Injection-Info: dont-email.me; posting-host="65b4f7e03bc8341bfbc0e87289ae13cc";
logging-data="1971248"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX190hKpjACVrVIt6ghSTtX4Zg28n5WzwKoh7CKDW/3baXw=="
Cancel-Lock: sha1:dzjGytZ93BjzEKV2hwO5ntYla08=
X-MSMail-Priority: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5512
X-Newsreader: Microsoft Outlook Express 6.00.2900.5512
X-RFC2646: Format=Flowed; Original
X-Priority: 3
 by: R.Wieser - Tue, 26 Mar 2024 14:35 UTC

Newyana2,

> It's more practical with these issues if you explain what
> you're trying to accomplish.

I thought I did that in the "the problem is" paragraph. Did I forget to
mention something ? If so, what ?

I even summed it up in the "question:" paragraph.

> Then people can brainstorm the whole process.

No thanks. I already did that.

> It also helps to weed out preconceptions,

It also attracts a number of people who have no problem replacing my
question with what they decide I /really/ wanted to know - and than waste
their and my time with solving problems I never had (and get all pissed-off
when I mention it).

But, if you think you know I have a preconception somewhere in there than I
would like to hear it.

> like the man who's trying to figure out how to avoid getting
> his newspaper wet, wtihout explaining that the problem is
> a spraying kitchen faucet and not rain.

:-) I've had it way to many times the other way around. Including people
questioning my decision to have a newspaper with me to begin with, and than
going off on tangents to what they think the best replacement for it is or
even how stone tablets where way superior. :-(

To re-phrase my initial post :

I've noticed that WorPad refuses to open a document (with new content) when
it already has that document open (but is showing the old, now gone(!)
content).

Is there a commandline switch to override that behaviour and either open the
document in a new window, or (preferrably) re-load the document.

Thats all I need to know. If that doesn't exist I'm going to work my way
thru a few alternatives myself first.

Regards,
Rudy Wieser

Re: Reloading a changed a wordpad document ?

<5wqxpQArdwAmFwHz@255soft.uk>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=7954&group=alt.windows7.general#7954

  copy link   Newsgroups: alt.comp.os.windows-xp alt.windows7.general
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!feeder.usenetexpress.com!tr1.iad1.usenetexpress.com!69.80.99.22.MISMATCH!Xl.tags.giganews.com!local-2.nntp.ord.giganews.com!nntp.brightview.co.uk!news.brightview.co.uk.POSTED!not-for-mail
NNTP-Posting-Date: Tue, 26 Mar 2024 17:43:10 +0000
Message-ID: <5wqxpQArdwAmFwHz@255soft.uk>
Date: Tue, 26 Mar 2024 17:35:39 +0000
From: G6J...@255soft.uk (J. P. Gilliver)
Newsgroups: alt.comp.os.windows-xp,alt.windows7.general
Subject: Re: Reloading a changed a wordpad document ?
References: <utrcug$vpml$1@dont-email.me> <utug33$1qjnh$1@dont-email.me> <utumha$1s51g$1@dont-email.me>
Organization: 255 software
MIME-Version: 1.0
Content-Type: text/plain;charset=us-ascii;format=flowed
User-Agent: Turnpike/6.07-M (<NO5iwfOH8$6kdAJVloD+QFLAxV>)
X-Antivirus: AVG (VPS 240326-2, 2024-3-26), Outbound message
X-Antivirus-Status: Clean
Lines: 36
X-Usenet-Provider: http://www.giganews.com
X-Trace: sv3-DDRYR4r1A/2j+EnkD1Ytjud3dZ/prJKBpSvoS8RKtRnXq7D9Nk+w0wEM+eSBt6K4cbWyjkHpmrQX7Vo!K1mw219x0AR+K0B+/KJXkcEFaCVSv9tv4Sjn3I2dRWe/dNQXxVP1RNRw3lCbXwigLRG9FwQL
X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly
X-Postfilter: 1.3.40
 by: J. P. Gilliver - Tue, 26 Mar 2024 17:35 UTC

In message <utumha$1s51g$1@dont-email.me> at Tue, 26 Mar 2024 15:35:47,
R.Wieser <address@is.invalid> writes
[]
>It also attracts a number of people who have no problem replacing my
>question with what they decide I /really/ wanted to know - and than waste
>their and my time with solving problems I never had (and get all pissed-off
>when I mention it).
>
Yes, I've noticed that! (The ones who suggested you get the generating
prog. to create time-stamped versions haven't grasped what you want to
do/happen.)
[]
>To re-phrase my initial post :
>
>I've noticed that WorPad refuses to open a document (with new content) when
>it already has that document open (but is showing the old, now gone(!)
>content).
>
>Is there a commandline switch to override that behaviour and either open the
>document in a new window, or (preferrably) re-load the document.
[]
I suspect there isn't, for two reasons:
1. (As some have pointed out) WordPad is an editor, not just a viewer
(i. e. has the ability to write); this may be the root of some of the
problems. (The fact that the generating prog. _can_ create a new version
while WordPad has it open is slightly surprising.)
2. WordPad would have to _know_ that a new version has been created, and
load it automatically. Or are you saying that you'd be willing top open
it manually, when you know the other software has created a new version
of the file, but you'd rather not have to close it first?
--
J. P. Gilliver. UMRA: 1960/<1985 MB++G()AL-IS-Ch++(p)Ar@T+H+Sh0!:`)DNAf

"The wish of the lazy to allow unsupervised access [to the internet] to their
children should not reduce all adults browsing to the level of suitability for a
five-year-old." Yaman Akdeniz, quoted in Inter//face (The Times, 1999-2-10): p12

Re: Reloading a changed a wordpad document ?

<qb860jtvdav17qqlh5os9j2hg8ufve84hv@4ax.com>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=7955&group=alt.windows7.general#7955

  copy link   Newsgroups: alt.comp.os.windows-xp alt.windows7.general
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!feeder1-2.proxad.net!proxad.net!feeder1-1.proxad.net!193.141.40.65.MISMATCH!npeer.as286.net!npeer-ng0.as286.net!peer01.ams1!peer.ams1.xlned.com!news.xlned.com!peer01.ams4!peer.am4.highwinds-media.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!fx46.iad.POSTED!not-for-mail
From: non...@none.invalid (Char Jackson)
Newsgroups: alt.comp.os.windows-xp,alt.windows7.general
Subject: Re: Reloading a changed a wordpad document ?
Message-ID: <qb860jtvdav17qqlh5os9j2hg8ufve84hv@4ax.com>
References: <utrcug$vpml$1@dont-email.me> <utug33$1qjnh$1@dont-email.me> <utumha$1s51g$1@dont-email.me> <5wqxpQArdwAmFwHz@255soft.uk>
X-Newsreader: Forte Agent 6.00/32.1186
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Lines: 50
X-Complaints-To: abuse(at)newshosting.com
NNTP-Posting-Date: Tue, 26 Mar 2024 19:34:36 UTC
Organization: Newshosting.com - Highest quality at a great price! www.newshosting.com
Date: Tue, 26 Mar 2024 14:34:36 -0500
X-Received-Bytes: 3022
 by: Char Jackson - Tue, 26 Mar 2024 19:34 UTC

On Tue, 26 Mar 2024 17:35:39 +0000, "J. P. Gilliver" <G6JPG@255soft.uk> wrote:

>In message <utumha$1s51g$1@dont-email.me> at Tue, 26 Mar 2024 15:35:47,
>R.Wieser <address@is.invalid> writes
>[]
>>It also attracts a number of people who have no problem replacing my
>>question with what they decide I /really/ wanted to know - and than waste
>>their and my time with solving problems I never had (and get all pissed-off
>>when I mention it).
>>
>Yes, I've noticed that! (The ones who suggested you get the generating
>prog. to create time-stamped versions haven't grasped what you want to
>do/happen.)

I don't think that's fair at all.

>[]
>>To re-phrase my initial post :
>>
>>I've noticed that WorPad refuses to open a document (with new content) when
>>it already has that document open (but is showing the old, now gone(!)
>>content).
>>
>>Is there a commandline switch to override that behaviour and either open the
>>document in a new window, or (preferrably) re-load the document.
>[]
>I suspect there isn't, for two reasons:
>1. (As some have pointed out) WordPad is an editor, not just a viewer

Other editors can do it, (I mentioned one), so being an editor isn't an
impediment. It's much more likely that the creators of WordPad simply didn't add
the necessary code to support the desired function.

One possible workaround would be to write a wrapper for WordPad, but you'd
quickly get to a point where taskkill would likely enter the picture, and that's
a showstopper.

>(i. e. has the ability to write); this may be the root of some of the
>problems. (The fact that the generating prog. _can_ create a new version
>while WordPad has it open is slightly surprising.)
>2. WordPad would have to _know_ that a new version has been created, and
>load it automatically.

'Automatically' would probably be undesirable in the general case. In this
specific case, I'm not sure.

> Or are you saying that you'd be willing top open
>it manually, when you know the other software has created a new version
>of the file, but you'd rather not have to close it first?

Re: Reloading a changed a wordpad document ?

<utvam6$2b52s$1@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=7956&group=alt.windows7.general#7956

  copy link   Newsgroups: alt.comp.os.windows-xp alt.windows7.general
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: addr...@is.invalid (R.Wieser)
Newsgroups: alt.comp.os.windows-xp,alt.windows7.general
Subject: Re: Reloading a changed a wordpad document ?
Date: Tue, 26 Mar 2024 21:19:59 +0100
Organization: A noiseless patient Spider
Lines: 77
Message-ID: <utvam6$2b52s$1@dont-email.me>
References: <utrcug$vpml$1@dont-email.me> <utug33$1qjnh$1@dont-email.me> <utumha$1s51g$1@dont-email.me> <5wqxpQArdwAmFwHz@255soft.uk>
Injection-Date: Tue, 26 Mar 2024 20:20:22 +0100 (CET)
Injection-Info: dont-email.me; posting-host="65b4f7e03bc8341bfbc0e87289ae13cc";
logging-data="2462812"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19WjC9w22GqQt92tJlTQjL8VtmwZdZ9jvIKXSo/No7/Dw=="
Cancel-Lock: sha1:XZTPK6OKWciThAS8s8t12o2dcac=
X-MSMail-Priority: Normal
X-RFC2646: Format=Flowed; Response
X-Priority: 3
X-Newsreader: Microsoft Outlook Express 6.00.2900.5512
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5512
 by: R.Wieser - Tue, 26 Mar 2024 20:19 UTC

J. P. ,

>>It also attracts a number of people who have no problem replacing
>>my question with what they decide I /really/ wanted to know
....
> Yes, I've noticed that! (The ones who suggested you get the generating
> prog. to create time-stamped versions haven't grasped what you want to
> do/happen.)

No, I've really gotten people who told me in my face that what I asked was
not what I wanted to know, and my /actual/ question was {blah, blah, blah}.

Paul, just like Char, didn't know the answer to my question (quite possible
there isn't one), skipped it and sought a possible other approach. Which
works for most situations/askers.

Newyana2 is leaning towards trying to find a meta question (dragnetting).
Which, to me, isn't there.

(and yes, I know that I'm stepping onto some toes there. Sorry about that.)

>>Is there a commandline switch to override that behaviour and either open
>>the
>>document in a new window, or (preferrably) re-load the document.
> []
> I suspect there isn't, for two reasons:

Do you know that you're the first one who actually adresses my question ?
:-)

> 1. (As some have pointed out) WordPad is an editor, not just a viewer (i.
> e. has the ability to write); this may be the root of some of the
> problems.

problems like ... what ?

And do notice that its current behaviour has its own problem : If the
document has been recreated it is (very) easy to overwrite it with the old
contents still present in wordpad.

> (The fact that the generating prog. _can_ create a new version while
> WordPad has it open is slightly surprising.)

No, not really. If wordpad can load the whole document than there is no
reason to keep the file open - other than create a write (and read?) lock.

> 2. WordPad would have to _know_ that a new version has been created, and
> load it automatically.

No, that (automatically) is not what I asked (having a document change under
your fingers while you're typing in it ? Yuck!). It only should happen
when tell it to do so.

> Or are you saying that you'd be willing top open it manually, when you
> know the other software has created a new version of the file, but you'd
> rather not have to close it first?

Done manually or thru launching the document should not make a difference.
But my question was about me double-clicking the newly-generated document,
so lets keep it at that.

You know, having to close the old document first before being allowed to
open the (same named) new one would not even be that much of a problem to
me. What is is that currently wordpad brings the old document to top when I
double-click the new document - and doesn't tell a soul about it not being
the new document. :-(

And thats just *begging* me to continue using the old while thinking its the
new data - with the non-zero chance that I overwrite the new data with the
(edited) old data.

IOW, I'm effectivily trying to fix an UI problem.

Regards,
Rudy Wieser

Re: Reloading a changed a wordpad document ?

<gy6Xp4FrezAmFwU4@255soft.uk>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=7957&group=alt.windows7.general#7957

  copy link   Newsgroups: alt.comp.os.windows-xp alt.windows7.general
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!feeder.usenetexpress.com!tr2.iad1.usenetexpress.com!69.80.99.27.MISMATCH!Xl.tags.giganews.com!local-2.nntp.ord.giganews.com!nntp.brightview.co.uk!news.brightview.co.uk.POSTED!not-for-mail
NNTP-Posting-Date: Tue, 26 Mar 2024 21:03:20 +0000
Message-ID: <gy6Xp4FrezAmFwU4@255soft.uk>
Date: Tue, 26 Mar 2024 21:01:31 +0000
From: G6J...@255soft.uk (J. P. Gilliver)
Newsgroups: alt.comp.os.windows-xp,alt.windows7.general
Subject: Re: Reloading a changed a wordpad document ?
References: <utrcug$vpml$1@dont-email.me> <utug33$1qjnh$1@dont-email.me> <utumha$1s51g$1@dont-email.me> <5wqxpQArdwAmFwHz@255soft.uk> <utvam6$2b52s$1@dont-email.me>
Organization: 255 software
MIME-Version: 1.0
Content-Type: text/plain;charset=us-ascii;format=flowed
User-Agent: Turnpike/6.07-M (<f$7iwbMx8$6caAJVqqC+QNOLR9>)
X-Antivirus: AVG (VPS 240326-2, 2024-3-26), Outbound message
X-Antivirus-Status: Clean
Lines: 96
X-Usenet-Provider: http://www.giganews.com
X-Trace: sv3-pXryWleMkb42AoQ8CzVolM1kK1vh3Co4UqtZ8V9pmvkOPALdxuLrR1dcmD5l95yyI7Fuo0Q44XJgO4F!6003sQuQLDhrJm7yrOp5kQ8U1092oSMf09ZkT3WLeKLFOz4nGAFfkCp5JsqUb7DevrOcWlrz
X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly
X-Postfilter: 1.3.40
 by: J. P. Gilliver - Tue, 26 Mar 2024 21:01 UTC

In message <utvam6$2b52s$1@dont-email.me> at Tue, 26 Mar 2024 21:19:59,
R.Wieser <address@is.invalid> writes
>J. P. ,

(John)
[]
>>>Is there a commandline switch to override that behaviour and either open
>>>the
>>>document in a new window, or (preferrably) re-load the document.
>> []
>> I suspect there isn't, for two reasons:
>
>Do you know that you're the first one who actually adresses my question ?
>:-)

I think I'm quite good at that (certainly at seeing when people are
answering not quite the question that was asked, which doesn't make me
popular).
>
>> 1. (As some have pointed out) WordPad is an editor, not just a viewer (i.
>> e. has the ability to write); this may be the root of some of the
>> problems.
>
>problems like ... what ?

Well, I'd have thought - since it is _capable_ of writing, that it might
"lock" the file, preventing anything else writing to it. But obviously
that's _not_ happening.
>
>And do notice that its current behaviour has its own problem : If the
>document has been recreated it is (very) easy to overwrite it with the old
>contents still present in wordpad.

Yes. Ideally, you want a true viewer - read-only - for the type of file
in question (.rtf?).

I don't suppose the prog. that's creating the file has its own viewer
for them, that you until now haven't been aware of? (What _is_ that
prog.?)
>
>> (The fact that the generating prog. _can_ create a new version while
>> WordPad has it open is slightly surprising.)
>
>No, not really. If wordpad can load the whole document than there is no
>reason to keep the file open - other than create a write (and read?) lock.

Yes, obviously takes its own local copy at the moment of opening.
>
>> 2. WordPad would have to _know_ that a new version has been created, and
>> load it automatically.
>
>No, that (automatically) is not what I asked (having a document change under
>your fingers while you're typing in it ? Yuck!). It only should happen
>when tell it to do so.
>
>> Or are you saying that you'd be willing top open it manually, when you
>> know the other software has created a new version of the file, but you'd
>> rather not have to close it first?
>
>Done manually or thru launching the document should not make a difference.
>But my question was about me double-clicking the newly-generated document,
>so lets keep it at that.

OK, so _you_ instigate the opening (in this case by double-clicking).

It won't help with the problem, but I'm just curious: what is the reason
you're looking at this document? Obviously to see what's changed, but
how big is the document - about a (WordPad) windowful? What sort of
change does the generating prog. usually make?
>
>You know, having to close the old document first before being allowed to
>open the (same named) new one would not even be that much of a problem to
>me. What is is that currently wordpad brings the old document to top when I
>double-click the new document - and doesn't tell a soul about it not being
>the new document. :-(

Yes, I can see that being infuriating!
>
>And thats just *begging* me to continue using the old while thinking its the
>new data - with the non-zero chance that I overwrite the new data with the
>(edited) old data.

Definitely a read-only viewer needed - ideally, one without the
behaviour of WordPad! (Or do you _want_ to actually _edit_ the file?)

I'm pretty sure there _are_ other .rtf editors (not sure about viewers)
around, but I don't know if they all have the same (won't open new copy)
behaviour of WordPad.
>
>IOW, I'm effectivily trying to fix an UI problem.
Not sure it's _quite_ UI.
[]
--
J. P. Gilliver. UMRA: 1960/<1985 MB++G()AL-IS-Ch++(p)Ar@T+H+Sh0!:`)DNAf

Can you open your mind without it falling out?

Re: Reloading a changed a wordpad document ?

<utve9t$2c27m$1@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=7958&group=alt.windows7.general#7958

  copy link   Newsgroups: alt.comp.os.windows-xp alt.windows7.general
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: nos...@needed.invalid (Paul)
Newsgroups: alt.comp.os.windows-xp,alt.windows7.general
Subject: Re: Reloading a changed a wordpad document ?
Date: Tue, 26 Mar 2024 17:22:03 -0400
Organization: A noiseless patient Spider
Lines: 36
Message-ID: <utve9t$2c27m$1@dont-email.me>
References: <utrcug$vpml$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit
Injection-Date: Tue, 26 Mar 2024 21:22:05 +0100 (CET)
Injection-Info: dont-email.me; posting-host="2a6546338bcb176708f553376e14da25";
logging-data="2492662"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18Z6qJH1httdc75iVBGWeqJaNSvGj1l5aM="
User-Agent: Ratcatcher/2.0.0.25 (Windows/20130802)
Cancel-Lock: sha1:h9CczReTJFs2Hs+c8dlr9f6g6LU=
Content-Language: en-US
In-Reply-To: <utrcug$vpml$1@dont-email.me>
 by: Paul - Tue, 26 Mar 2024 21:22 UTC

On 3/25/2024 4:34 AM, R.Wieser wrote:
> Hello all,
>
> I've got a program which generates a wordpad document, which I than open by
> double-clicking it.
>
> The problem is that when the document is open and I re-generate the document
> and double-click it I still see the old contents. To see the new contents I
> have to close the old, still-open document first.
>
> Question:
> Is there a way to override this behaviour using a command-line argument ?
> Even just having two document windows open would be an improvement.
>
> remark: I prefer /not/ to use taskkill.
>
> Regards,
> Rudy Wieser
>
>

Perhaps you can launch Wordpad.exe from inside your program,
treating Wordpad as a viewer and not as an editor.

https://www.codeproject.com/Messages/146718/The-full-path-of-WordPad-exe

CreateProcess( "C:\\Program Files\\Accessories\\WordPad.exe", "D:\\myDoc.rtf",
NULL, NULL,FALSE, 0, NULL, NULL, &StartupInfo, &ProcessInfo ))

CreateProcess( "C:\\Program Files\\Windows NT\\Accessories\\WordPad.exe", "D:\\myDoc.rtf",
NULL, NULL,FALSE, 0, NULL, NULL, &StartupInfo, &ProcessInfo ))

That sort of thing. Then, when the conversion program has a new version to test,
it uses the %ProcessInfo to kill the old one.

Paul

Re: Reloading a changed a wordpad document ?

<1m6ucvx83zh8y.dlg@v.nguard.lh>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=7960&group=alt.windows7.general#7960

  copy link   Newsgroups: alt.comp.os.windows-xp alt.windows7.general
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: V...@nguard.LH (VanguardLH)
Newsgroups: alt.comp.os.windows-xp,alt.windows7.general
Subject: Re: Reloading a changed a wordpad document ?
Date: Tue, 26 Mar 2024 18:46:39 -0500
Organization: Usenet Elder
Lines: 45
Sender: V@nguard.LH
Message-ID: <1m6ucvx83zh8y.dlg@v.nguard.lh>
References: <utrcug$vpml$1@dont-email.me> <utug33$1qjnh$1@dont-email.me> <utumha$1s51g$1@dont-email.me> <5wqxpQArdwAmFwHz@255soft.uk> <utvam6$2b52s$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
X-Trace: individual.net 58nR7GZnfbK+3eDcX8Wk0AHnINtqhLr1o6+eXNep78gSLuPdSn
Keywords: VanguardLH,VLH
Cancel-Lock: sha1:ScQ5g5aoiDpg2rIErhpdqmOlkZA= sha256:aUgf5BTQZ8V5j5Dm5rm7I35cZCTbL3J8/4yNhEPLKL4=
User-Agent: 40tude_Dialog/2.0.15.41
 by: VanguardLH - Tue, 26 Mar 2024 23:46 UTC

I don't think Wordpad will work how you want. When it opens a document,
it loads the doc into buffer. If the target doesn't change, it uses
what is in its buffer. You could change the file itself many times, but
Wordpad will still show you the contents of its buffer. You have to
flush the buffer by loading in a new doc even if it is the same file but
changed since lasted loaded. Wordpad's File -> Open menu is not an
option since you pick the same target, so it still shows you its current
buffer content. There is no Close in Wordpad to force creating a new
buffer, and selecting the same target has Wordpad "facilitate" reduction
of resource and enhanced load speed by showing you the buffer it already
has for that file.

As a test using Notepad, I opened it, entered "hello there", and saved
to test.txt. I left that Notepad instance open, so it will continue to
show the old contents still in its buffer. I edited test.txt using
Notepad++ (or anything but Notepad) to "out to lunch", and manually
saved the change (File -> Save), and exited Notepad++. I then
double-clicked the same test.txt file, and the Notepad instance that
opened loaded the current file into its own buffer, so I saw "out to
lunch" in the new instance of Notepad, and "hello there" in the older
instance of Notepad. With Notepad, a new instance would load the
changed file.

I did the same test using Wordpad. On an .rtf file containing "hello
there", I opened it in Wordpad. While the Wordpad window was left open
(so it continued to show the contents of its buffer), I edited test.rtf
using Notepad++ to change to "out to lunch", and saved manually (if I
just close Notepad++ there was no prompt to save changes). I then
opened the changed file in Wordpad. Nope, the 2nd instance of Wordpad
still showed "hello there" instead of "out to lunch". Almost as though
the 2nd instance of Wordpad were reusing the buffer from the 1st
instance of Wordpad.

Does your program have to output to an .rtf file? Maybe it could
generate a .txt file since Notepad will use a new buffer in a new
instance of it but Wordpad doesn't. Or you hit F2 in Explorer on the
file to rename from .rtf to .txt. You don't want to reassign .rtf
filetypes to a different editor since that would change the handler for
all .rtf files. Okay, so rename the file to .txt before double-clicking
on it. If you cannot change the program to output to a .txt file
instead of an .rtf file, you can force the change yourself by changing
the extension.

Is there really any formatting in the output file by the program that
would require RTF, or is it all just plain text?

Re: Reloading a changed a wordpad document ?

<7as60j1q5t79sv5eeisajr1btqp0uc3cv1@4ax.com>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=7961&group=alt.windows7.general#7961

  copy link   Newsgroups: alt.windows7.general
Path: i2pn2.org!i2pn.org!newsfeed.bofh.team!paganini.bofh.team!not-for-mail
From: Man...@the.keyboard (John)
Newsgroups: alt.windows7.general
Subject: Re: Reloading a changed a wordpad document ?
Date: Wed, 27 Mar 2024 01:14:54 +0000
Organization: To protect and to server
Sender: 9dIQLXBM7WM9KzA+yjdR4A
Message-ID: <7as60j1q5t79sv5eeisajr1btqp0uc3cv1@4ax.com>
References: <utrcug$vpml$1@dont-email.me> <utug33$1qjnh$1@dont-email.me> <utumha$1s51g$1@dont-email.me> <5wqxpQArdwAmFwHz@255soft.uk> <utvam6$2b52s$1@dont-email.me> <1m6ucvx83zh8y.dlg@v.nguard.lh>
Reply-To: Anyone.but.me@this.time
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Injection-Info: paganini.bofh.team; logging-data="3805377"; posting-host="9+a4C+hhczucFVGe+9gWZQ.user.paganini.bofh.team"; mail-complaints-to="usenet@bofh.team"; posting-account="9dIQLXBM7WM9KzA+yjdR4A";
User-Agent: Jane Bond Girl Of Next Millennium
X-Newsreader: Forte Agent 4.2/32.1118
X-Notice: Filtered by postfilter v. 0.9.3
 by: John - Wed, 27 Mar 2024 01:14 UTC

On Tue, 26 Mar 2024 18:46:39 -0500, VanguardLH <V@nguard.LH> wrote:

<<snipped some really good stuff>>

>
>Does your program have to output to an .rtf file? Maybe it could
>generate a .txt file since Notepad will use a new buffer in a new
>instance of it but Wordpad doesn't. Or you hit F2 in Explorer on the
>file to rename from .rtf to .txt. You don't want to reassign .rtf
>filetypes to a different editor since that would change the handler for
>all .rtf files. Okay, so rename the file to .txt before double-clicking
>on it. If you cannot change the program to output to a .txt file
>instead of an .rtf file, you can force the change yourself by changing
>the extension.

Or he could save it as "Filename.zxz" and only assign "*.zxz" files
to Wordpad.

"*.txt" already has "properties" assigned to it by Windows, a
randomish extension probably won't and probably will inherit them from
the program saving to it.
Probably. Mostly. Maybe.

>
>Is there really any formatting in the output file by the program that
>would require RTF, or is it all just plain text?

"*.zxz" files could contain formatted text, too, if you saved to one
using Wordpad.

J.

Re: Reloading a changed a wordpad document ?

<C$aPq4Irs9AmFwxg@255soft.uk>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=7963&group=alt.windows7.general#7963

  copy link   Newsgroups: alt.windows7.general
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!feeder.usenetexpress.com!tr1.iad1.usenetexpress.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!Xl.tags.giganews.com!local-1.nntp.ord.giganews.com!nntp.brightview.co.uk!news.brightview.co.uk.POSTED!not-for-mail
NNTP-Posting-Date: Wed, 27 Mar 2024 08:43:50 +0000
Message-ID: <C$aPq4Irs9AmFwxg@255soft.uk>
Date: Wed, 27 Mar 2024 08:39:07 +0000
From: G6J...@255soft.uk (J. P. Gilliver)
Newsgroups: alt.windows7.general
Subject: Re: Reloading a changed a wordpad document ?
References: <utrcug$vpml$1@dont-email.me> <utug33$1qjnh$1@dont-email.me> <utumha$1s51g$1@dont-email.me> <5wqxpQArdwAmFwHz@255soft.uk> <utvam6$2b52s$1@dont-email.me> <1m6ucvx83zh8y.dlg@v.nguard.lh> <7as60j1q5t79sv5eeisajr1btqp0uc3cv1@4ax.com>
Organization: 255 software
MIME-Version: 1.0
Content-Type: text/plain;charset=us-ascii;format=flowed
User-Agent: Turnpike/6.07-M (<vqyiwPgl8$KKfAJVvaF+QNZuBV>)
X-Antivirus: AVG (VPS 240326-4, 2024-3-26), Outbound message
X-Antivirus-Status: Clean
Lines: 16
X-Usenet-Provider: http://www.giganews.com
X-Trace: sv3-2mWrF2ARGZg6fAnLWaJOKDvO7qFF33abEZyk+PGU6vuHgO8J+5ayJOmuurug+1X+J5IuZNlgqbXPxer!pa84zzCGB4n7acKDXU6yN1wL5MCfzV5sSq4h12Vb+AyMolC8aNDj8qqb9ZCFiSxeuI5CQXVI
X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly
X-Postfilter: 1.3.40
X-Received-Bytes: 2058
 by: J. P. Gilliver - Wed, 27 Mar 2024 08:39 UTC

In message <7as60j1q5t79sv5eeisajr1btqp0uc3cv1@4ax.com> at Wed, 27 Mar
2024 01:14:54, John <Man@the.keyboard> writes
[]
> Or he could save it as "Filename.zxz" and only assign "*.zxz" files
>to Wordpad.
[]
I thought of that too, but (a) that assumes that the creating prog. can
save with an arbitrary extension, (b) it wouldn't solve the problem
specific to WordPad that, if you double-click on a filename it already
has open, it doesn't re-open.
--
J. P. Gilliver. UMRA: 1960/<1985 MB++G()AL-IS-Ch++(p)Ar@T+H+Sh0!:`)DNAf

If you're worried that your house is haunted by a ghost and might need
exorcising, there's an easy way of working out if it is or it isn't: it isn't.
- Victoria Coren Mitchell, quoted in RT 2017/10/7-13

Re: Reloading a changed a wordpad document ?

<uu0q50$2p1un$1@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=7964&group=alt.windows7.general#7964

  copy link   Newsgroups: alt.comp.os.windows-xp alt.windows7.general
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: addr...@is.invalid (R.Wieser)
Newsgroups: alt.comp.os.windows-xp,alt.windows7.general
Subject: Re: Reloading a changed a wordpad document ?
Date: Wed, 27 Mar 2024 09:52:46 +0100
Organization: A noiseless patient Spider
Lines: 123
Message-ID: <uu0q50$2p1un$1@dont-email.me>
References: <utrcug$vpml$1@dont-email.me> <utug33$1qjnh$1@dont-email.me> <utumha$1s51g$1@dont-email.me> <5wqxpQArdwAmFwHz@255soft.uk> <utvam6$2b52s$1@dont-email.me> <gy6Xp4FrezAmFwU4@255soft.uk>
Injection-Date: Wed, 27 Mar 2024 09:50:24 +0100 (CET)
Injection-Info: dont-email.me; posting-host="d974a0ddf0f570c0f803d2f182c25974";
logging-data="2918359"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/w+c2H1GrGxABxCM+Qy7Rq+Q4R8nxxDQK/oIUquBO+5A=="
Cancel-Lock: sha1:rdW2pKqU3xe7mL9nska+kc1Fz40=
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5512
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.5512
X-RFC2646: Format=Flowed; Response
 by: R.Wieser - Wed, 27 Mar 2024 08:52 UTC

J. P. ,

>>Do you know that you're the first one who actually adresses my question ?
>>:-)
>
> I think I'm quite good at that (certainly at seeing when people are
> answering not quite the question that was asked, which doesn't make me
> popular).

I think I make myself unpopulair by putting effort into isolating the
problem first and than formulating an exact question to it. IOW, I'm not
giving the people who respond a lot of leeway in their answers ...

And me being able to point out the downsides of offered work-arounds does
not help either...

>>problems like ... what ?
>
> Well, I'd have thought - since it is _capable_ of writing, that it might
> "lock" the file, preventing anything else writing to it. But obviously
> that's _not_ happening.

:-) I /think/ I might have noticed the document-generating program throwing
an error because it could not open the write-locked file.

Than again, its hard to know how knowledgable the asker is, and he /could/
just be a PEBKAC or ID:10T, not knowing the front from its desktops back.
:-|

> Yes. Ideally, you want a true viewer - read-only - for the type of file in
> question (.rtf?).

Nope. I have zero problems with using a full-fledged editor. They come
with a few pro's that could be usefull*, even in this case.

* like editing/annotating and copy-pasting a few paragraphs elsewhere.

If I would wanted to have a read-only "viewer" than my question would have
been exactly that. Likely asking if wordpad has a commandline switch for
it.

> I don't suppose the prog. that's creating the file has its own viewer for
> them, that you until now haven't been aware of?

Nope, it doesn't have its own one. Why should it? Its output is just a
document that can be read by pretty-much every editor there is. Its like
asking if the DIR command has its own viewer. :-)

> (What _is_ that prog.?)

You know curiosity killed the kat, right ? :-)

Its not a commonly known program, which is why me mentioning it/its purpose
would not help you in the slightest. It takes information, formats it and
than writes it into the document I mentioned. If you want you can compare
it to "DIR > {some file}".

And yes, that (DIR > file) could be another situation in which I could run
into wordpads ignoring of the new files contents ...

Copying the document from somewhere else (like a thumbdrive) would be
another.

Or, in other words: The answer to the question I asked would be applicable
to more situations than the one I described.

> OK, so _you_ instigate the opening (in this case by double-clicking).

Yes. And I said so in my initial post.

> It won't help with the problem, but I'm just curious: what is the reason
> you're looking at this document?

Would you believe me if I said it was to pass the time ? No ? Than I won't
say it. :-)

> Obviously to see what's changed, but how big is the document - about a
> (WordPad) windowful?

That depends on the source. But normally its tens of screens full.

> What sort of change does the generating prog. usually make?

That also depends on the source. Often the changes are minor, but sometimes
they are major.

>>And thats just *begging* me to continue using the old while thinking its
>>the new data - with the non-zero chance that I overwrite the new data with
>>the (edited) old data.
>
> Definitely a read-only viewer needed -

Not if wordpad itself has the solution for what I described build-in - and
I'm still in the discovery phase in that regard.

If it doesn't than I will switch my focus to finding either work-arounds or
perhaps such a reader.

Though in that case I might just take a riched20 component, wrap it in a
dialog and be done with it. Yep, I'm a (hobby) programmer. :-)

> ideally, one without the behaviour of WordPad!

Why ? Thats throwing the baby away with the bathwater ...

> (Or do you _want_ to actually _edit_ the file?)

Normally, no. But at times I have had the need for it.

> I'm pretty sure there _are_ other .rtf editors (not sure about viewers)
> around, but I don't know if they all have the same (won't open new copy)
> behaviour of WordPad.

As earlier mentioned, I will start to consider other options* /after/ I have
concluded my current question. Yes, I'm odd like that. Sorry. :-)

* even though I already went thru inventorizing a few work-arounds/hacks
before posting my question, taskkill being one of them.

Regards,
Rudy Wieser

Re: Reloading a changed a wordpad document ?

<uu0q50$2p1un$2@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=7965&group=alt.windows7.general#7965

  copy link   Newsgroups: alt.comp.os.windows-xp alt.windows7.general
Path: i2pn2.org!i2pn.org!news.nntp4.net!news.hispagatos.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: addr...@is.invalid (R.Wieser)
Newsgroups: alt.comp.os.windows-xp,alt.windows7.general
Subject: Re: Reloading a changed a wordpad document ?
Date: Wed, 27 Mar 2024 10:02:53 +0100
Organization: A noiseless patient Spider
Lines: 16
Message-ID: <uu0q50$2p1un$2@dont-email.me>
References: <utrcug$vpml$1@dont-email.me> <utve9t$2c27m$1@dont-email.me>
Injection-Date: Wed, 27 Mar 2024 09:50:25 +0100 (CET)
Injection-Info: dont-email.me; posting-host="d974a0ddf0f570c0f803d2f182c25974";
logging-data="2918359"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19PT1UOGjBdU+PWXvHUC4xTkAKwVAlnVjyk6a/Stfcpvg=="
Cancel-Lock: sha1:d+UbKkdcsJrkgIhTBFPIdpEd8fo=
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5512
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.5512
X-RFC2646: Format=Flowed; Original
 by: R.Wieser - Wed, 27 Mar 2024 09:02 UTC

Paul,

> Perhaps you can launch Wordpad.exe from inside your program,
> treating Wordpad as a viewer and not as an editor.

Thats assuming I can rewrite "the program" ...

> That sort of thing. Then, when the conversion program has a new version to
> test, it uses the %ProcessInfo to kill the old one.

Yes, thats possible (I mentioned taskkill in my initial post).

Regards,
Rudy Wieser

Re: Reloading a changed a wordpad document ?

<bMK5mENoq$AmFwRa@255soft.uk>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=7966&group=alt.windows7.general#7966

  copy link   Newsgroups: alt.comp.os.windows-xp alt.windows7.general
Path: i2pn2.org!i2pn.org!usenet.goja.nl.eu.org!3.eu.feeder.erje.net!feeder.erje.net!npeer.as286.net!npeer-ng0.as286.net!peer03.ams1!peer.ams1.xlned.com!news.xlned.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!Xl.tags.giganews.com!local-1.nntp.ord.giganews.com!nntp.brightview.co.uk!news.brightview.co.uk.POSTED!not-for-mail
NNTP-Posting-Date: Wed, 27 Mar 2024 11:03:56 +0000
Message-ID: <bMK5mENoq$AmFwRa@255soft.uk>
Date: Wed, 27 Mar 2024 10:53:28 +0000
From: G6J...@255soft.uk (J. P. Gilliver)
Newsgroups: alt.comp.os.windows-xp,alt.windows7.general
Subject: Re: Reloading a changed a wordpad document ?
References: <utrcug$vpml$1@dont-email.me> <utug33$1qjnh$1@dont-email.me>
<utumha$1s51g$1@dont-email.me> <5wqxpQArdwAmFwHz@255soft.uk>
<utvam6$2b52s$1@dont-email.me> <gy6Xp4FrezAmFwU4@255soft.uk>
<uu0q50$2p1un$1@dont-email.me>
Organization: 255 software
MIME-Version: 1.0
Content-Type: text/plain;charset=us-ascii
User-Agent: Turnpike/6.07-M (<fE0iw36V8$qv0AJVR6J+QNi0Og>)
X-Antivirus: AVG (VPS 240326-4, 2024-3-26), Outbound message
X-Antivirus-Status: Clean
Lines: 102
X-Usenet-Provider: http://www.giganews.com
X-Trace: sv3-91OtSec8/2p+WCaQeHpM3lrEgWbgoHovzuER+d/f129yqSLKcSlGfIG2EYdnhhw+9m+gW90idJFyno6!d4y3razyqG7VBiY8Kkp4Uw62YJGoSuvFGvx8BtPaAKQLY3qicpHL2bF+EBMwsy8O6ScT+XhS
X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly
X-Postfilter: 1.3.40
X-Received-Bytes: 5823
 by: J. P. Gilliver - Wed, 27 Mar 2024 10:53 UTC

In message <uu0q50$2p1un$1@dont-email.me> at Wed, 27 Mar 2024 09:52:46,
R.Wieser <address@is.invalid> writes
>J. P. ,
>
>>>Do you know that you're the first one who actually adresses my question ?
>>>:-)
>>
>> I think I'm quite good at that (certainly at seeing when people are
>> answering not quite the question that was asked, which doesn't make me
>> popular).
>
>I think I make myself unpopulair by putting effort into isolating the
>problem first and than formulating an exact question to it. IOW, I'm not
>giving the people who respond a lot of leeway in their answers ...
>
>And me being able to point out the downsides of offered work-arounds does
>not help either...

We're kindred spirits (-:
[]
>just be a PEBKAC or ID:10T, not knowing the front from its desktops back.
>:-|

I knew PEBKAC, but took me a while to figure out the second one!
[]
>> I don't suppose the prog. that's creating the file has its own viewer for
>> them, that you until now haven't been aware of?
>
>Nope, it doesn't have its own one. Why should it? Its output is just a
>document that can be read by pretty-much every editor there is. Its like
>asking if the DIR command has its own viewer. :-)

Well, that's related to my asking below what was your _reason_ for
wanting to monitor the changes. More below.
[]
>Or, in other words: The answer to the question I asked would be applicable
>to more situations than the one I described.

I can see that. However, I was addressing (though without providing a
solution!) the specific.
[]
>> It won't help with the problem, but I'm just curious: what is the reason
>> you're looking at this document?
>
>Would you believe me if I said it was to pass the time ? No ? Than I won't
>say it. :-)
>
>> Obviously to see what's changed, but how big is the document - about a
>> (WordPad) windowful?
>
>That depends on the source. But normally its tens of screens full.
>
>> What sort of change does the generating prog. usually make?
>
>That also depends on the source. Often the changes are minor, but sometimes
>they are major.

These questions were trying to find what your _specific_ problem is. I
appreciate you asked in more _general_ terms (basically "does WordPad
have a switch that allows it to re-open the same document it already has
open [if someone/something else has changed it]"), but I was trying to
find _why_ you wanted that: fair enough, it's good to ask the general
question (from the lack of responses that actually give the switch, the
answer would appear to be "no, it has no such switch"). I had the
feeling you wanted something like a "status window", so you could see
what was changing in real time, or at least in response to actions you
or the originating prog. take (hence my asking if the originating prog.
had a viewer). Since you're somewhat secretive about what the
originating prog. is (or does), I was unable to abandon the suspicion
that that's what you wanted! If it isn't, what _do_ you want - for/with
the output of this specific prog., not as a general WordPad question
(for which it doesn't seem an answer is forthcoming)?
[]
>Though in that case I might just take a riched20 component, wrap it in a
>dialog and be done with it. Yep, I'm a (hobby) programmer. :-)

[I was once, but not kept up to date (even though that's now decades!)
with how a lot of modern things work.]
[]
>As earlier mentioned, I will start to consider other options* /after/ I have
>concluded my current question. Yes, I'm odd like that. Sorry. :-)
>
>* even though I already went thru inventorizing a few work-arounds/hacks
>before posting my question, taskkill being one of them.
>
>Regards,
>Rudy Wieser
>
>
Yes, presumably a batch file of the form
kill existing WordPad
re-open WordPad with <file>
.. I share your reluctance to use kill - it's admitting defeat, as well
as you don't know what might not be tidied-up properly - and there's the
matter of identifying which task is WordPad. (Though the re-open line
may be able to assign a specific task number, or log it somewhere.)
--
J. P. Gilliver. UMRA: 1960/<1985 MB++G()AL-IS-Ch++(p)Ar@T+H+Sh0!:`)DNAf

I'd rather trust the guys in the lab coats who aren't demanding that I get up
early on Sundays to apologize for being human.
-- Captain Splendid (quoted by "The Real Bev" in mozilla.general, 2014-11-16)

Re: Reloading a changed a wordpad document ?

<jaxgqvns1e6j.dlg@v.nguard.lh>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=7967&group=alt.windows7.general#7967

  copy link   Newsgroups: alt.comp.os.windows-xp alt.windows7.general
Path: i2pn2.org!i2pn.org!usenet.goja.nl.eu.org!3.eu.feeder.erje.net!feeder.erje.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: V...@nguard.LH (VanguardLH)
Newsgroups: alt.comp.os.windows-xp,alt.windows7.general
Subject: Re: Reloading a changed a wordpad document ?
Date: Wed, 27 Mar 2024 07:22:01 -0500
Organization: Usenet Elder
Lines: 18
Sender: V@nguard.LH
Message-ID: <jaxgqvns1e6j.dlg@v.nguard.lh>
References: <utrcug$vpml$1@dont-email.me> <utug33$1qjnh$1@dont-email.me> <utumha$1s51g$1@dont-email.me> <5wqxpQArdwAmFwHz@255soft.uk> <utvam6$2b52s$1@dont-email.me> <gy6Xp4FrezAmFwU4@255soft.uk> <uu0q50$2p1un$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
X-Trace: individual.net uPKohp5ufz95iJCJo0DbQA4amTxvYeP55iGrSAIztEdrhObTIQ
Keywords: VanguardLH,VLH
Cancel-Lock: sha1:aMR4dp0/qyZPMUsUjyQLSBr1xLY= sha256:898Z1u06FWsvPBuJkCNTAs5yrYdQwl/3o1dWQiIpDyc=
User-Agent: 40tude_Dialog/2.0.15.41
 by: VanguardLH - Wed, 27 Mar 2024 12:22 UTC

Couldn't you use a batch script as a wrapper to your program? In the
..bat file, run the program. After it exits, use a 'ren' command to
change the extension from .rtf to .txt.

<program>
ren <name>.rtf <name>.txt

Then when you double-click on the .txt file in Explorer, Notepad will
open. The test I did showed Notepad will work how you want.

However, you don't even need to use Explorer to double-click on the
file. In the batch script, when your program exits, have the script run
Notepad to open the file.

<yourprogram>
notepad <name>.rtf

Regardless of what is the extension, Notepad will load the text file.

Re: Reloading a changed a wordpad document ?

<uu14vm$2rm87$1@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=7968&group=alt.windows7.general#7968

  copy link   Newsgroups: alt.comp.os.windows-xp alt.windows7.general
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: addr...@is.invalid (R.Wieser)
Newsgroups: alt.comp.os.windows-xp,alt.windows7.general
Subject: Re: Reloading a changed a wordpad document ?
Date: Wed, 27 Mar 2024 12:47:41 +0100
Organization: A noiseless patient Spider
Lines: 32
Message-ID: <uu14vm$2rm87$1@dont-email.me>
References: <utrcug$vpml$1@dont-email.me> <utug33$1qjnh$1@dont-email.me> <utumha$1s51g$1@dont-email.me> <5wqxpQArdwAmFwHz@255soft.uk> <utvam6$2b52s$1@dont-email.me> <1m6ucvx83zh8y.dlg@v.nguard.lh>
Injection-Date: Wed, 27 Mar 2024 12:55:18 +0100 (CET)
Injection-Info: dont-email.me; posting-host="d974a0ddf0f570c0f803d2f182c25974";
logging-data="3004679"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19HOWz/jPH8CQEHpw+8iI3fCN4ZOoEh8WdXceAX1cT5tQ=="
Cancel-Lock: sha1:hEfTahbo2k8+qp3PjgRurJCmgSA=
X-Newsreader: Microsoft Outlook Express 6.00.2900.5512
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5512
X-MSMail-Priority: Normal
X-Priority: 3
X-RFC2646: Format=Flowed; Original
 by: R.Wieser - Wed, 27 Mar 2024 11:47 UTC

Vanguard,

> I don't think Wordpad will work how you want. When it opens a
> document, it loads the doc into buffer. If the target doesn't
> change, it uses what is in its buffer. You could change the file
> itself many times, but Wordpad will still show you the contents
> of its buffer.

Yes, I know. But I specifically mentioned double-clicking the document
file - which *does* cause the wordpad program, showing the old document, to
put itself ontop and focussed.

IOW, it gets a signal someone tried to open a document with the same name it
already has, but than blithely ignores al that information.

> As a test using Notepad,
[snip]

Its not about /automatically/ updating the contents of wordpad when the file
changes, its about showing the contents of the file when the user
double-clicks it (a manual action).

> Is there really any formatting in the output file by the program
> that would require RTF, or is it all just plain text?

As so often, my question is not only aimed at my current situation, but also
at other, similar ones (trying to solve the problem at its root).

Regards,
Rudy Wieser

Re: Reloading a changed a wordpad document ?

<uu14vm$2rm87$2@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=7969&group=alt.windows7.general#7969

  copy link   Newsgroups: alt.comp.os.windows-xp alt.windows7.general
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: addr...@is.invalid (R.Wieser)
Newsgroups: alt.comp.os.windows-xp,alt.windows7.general
Subject: Re: Reloading a changed a wordpad document ?
Date: Wed, 27 Mar 2024 13:54:31 +0100
Organization: A noiseless patient Spider
Lines: 55
Message-ID: <uu14vm$2rm87$2@dont-email.me>
References: <utrcug$vpml$1@dont-email.me> <utug33$1qjnh$1@dont-email.me> <utumha$1s51g$1@dont-email.me> <5wqxpQArdwAmFwHz@255soft.uk> <utvam6$2b52s$1@dont-email.me> <gy6Xp4FrezAmFwU4@255soft.uk> <uu0q50$2p1un$1@dont-email.me> <bMK5mENoq$AmFwRa@255soft.uk>
Injection-Date: Wed, 27 Mar 2024 12:55:19 +0100 (CET)
Injection-Info: dont-email.me; posting-host="d974a0ddf0f570c0f803d2f182c25974";
logging-data="3004679"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/r4pF0WDGSGMTqcRLJ34O7rJFbgm7je8ghq2N3nWYxwg=="
Cancel-Lock: sha1:jjWnIiA89Snl5xysZC8N1dbZL9w=
X-MSMail-Priority: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5512
X-Newsreader: Microsoft Outlook Express 6.00.2900.5512
X-RFC2646: Format=Flowed; Original
X-Priority: 3
 by: R.Wieser - Wed, 27 Mar 2024 12:54 UTC

J, P. ,

>> just be a PEBKAC or ID:10T, not knowing the front from its desktops
>> back. :-|
>
> I knew PEBKAC, but took me a while to figure out the second one!

I was a bit sneaky there, inserting that ":". I didn't want it to be /too/
obvious. :-)

> Well, that's related to my asking below what was your _reason_
> for wanting to monitor the changes.

Again, I do *NOT* want to /monitor/ any changes.

I just want to see the contents of the document I just double-clicked.
Thats all. I asked for it, it needs to happen.

> These questions were trying to find what your _specific_ problem is.

In a few words :? Explicitily asking for something to happen and
(silently!) being ignored (which has caused me problems in the past).

> from the lack of responses that actually give the switch, the answer
> would appear to be "no, it has no such switch"

I would already be glad with "I'm not aware of the existance of such a
switch" kind of replies - and than possibly /followed/ with suggestions of
other approaches.

> I had the feeling you wanted something like a "status window",
....
> If it isn't, what _do_ you want

Simple: double-click a file, the file gets loaded and displayed. Rinse and
repeat.

> for/with the output of this specific prog.

I see I made a mistake in mentioning the program which is the source of the
document. It allowed you to side-track yourself.

> not as a general WordPad question (for which it doesn't seem an
> answer is forthcoming)?

As far as I'm concerned the answer must still be sought in direct connection
to wordpad - as it is causing the problem, nothing else.

Pehaps I will use "taskkill" (or similar mechanisms) for a while and see how
I like it. Might even put something like it in a launcher program.

Regards,
Rudy Wieser

Re: Reloading a changed a wordpad document ?

<uu1b3q$2t4l0$2@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=7970&group=alt.windows7.general#7970

  copy link   Newsgroups: alt.comp.os.windows-xp alt.windows7.general
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: nos...@needed.invalid (Paul)
Newsgroups: alt.comp.os.windows-xp,alt.windows7.general
Subject: Re: Reloading a changed a wordpad document ?
Date: Wed, 27 Mar 2024 10:39:53 -0400
Organization: A noiseless patient Spider
Lines: 23
Message-ID: <uu1b3q$2t4l0$2@dont-email.me>
References: <utrcug$vpml$1@dont-email.me> <utve9t$2c27m$1@dont-email.me>
<uu0q50$2p1un$2@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit
Injection-Date: Wed, 27 Mar 2024 14:39:54 +0100 (CET)
Injection-Info: dont-email.me; posting-host="17bebc6bc4cece86ca3a826f52df4e1a";
logging-data="3052192"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/HrIdVw4bzaMvimRBw7ZFI6nuKjgKA7o0="
User-Agent: Ratcatcher/2.0.0.25 (Windows/20130802)
Cancel-Lock: sha1:xE5w7iKLn66SENsGmeVOqWXUV9w=
In-Reply-To: <uu0q50$2p1un$2@dont-email.me>
Content-Language: en-US
 by: Paul - Wed, 27 Mar 2024 14:39 UTC

On 3/27/2024 5:02 AM, R.Wieser wrote:
> Paul,
>
>> Perhaps you can launch Wordpad.exe from inside your program,
>> treating Wordpad as a viewer and not as an editor.
>
> Thats assuming I can rewrite "the program" ...
>
>> That sort of thing. Then, when the conversion program has a new version to
>> test, it uses the %ProcessInfo to kill the old one.
>
> Yes, thats possible (I mentioned taskkill in my initial post).
>
> Regards,
> Rudy Wieser
>
>

Write a script to automate the looping behavior you desire.
Then it no longer matters, as you are saved the effort.

Paul

Pages:1234
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor