On 9/12/07, remarknibor <[EMAIL PROTECTED]> wrote:

> I'm using Visual C++ 2005 in Windows, and I'm writing a console
> application to run from the command prompt.
> I was just wondering if it was possible to have my program open up
> Notepad at a certain point so that users could write an essay in it,
> and then have my program save the file to a specified location after a
> certain amount of time has passed and close Notepad again. Basically,
> I'd like to use Notepad for the essay writing capabilities rather than
> the command prompt, but would like complete control over when it
> opens/closes and where it saves the current writing to.
> If this is possible, could you explain how it can be done? (It doesn't
> have to be Notepad, rather it could be any basic text editor.
> So far, all I've found is that I can open Notepad up from my code
> using:
> system("notepad.exe");

You know, for all this trouble, you could probably write a VBA script
for MS-Word that would accomplish the same thing. Yeah, I know,
off-topic for this group...

-- Brett
------------------------------------------------------------
"In the rhythm of music a secret is hidden;
    If I were to divulge it, it would overturn the world."
               -- Jelaleddin Rumi

Reply via email to