closing and saving a notepad file from the DOS prompt

W

Wouter

Dear newsgroup,

I can open a particular notepad (.txt) file from the DOS
prompt.
I would like to close (and save) .txt files from the
command prompt as well. There does not seem to be a DOS
command that performs this task. Is there a workaround ?
Is it possible to send a wm_close message to the window
from the DOS prompt, and a wm_keydown message to
the "&Yes" button (to save). Can anyone provide an example
of how this may be accomplished ?

Best regards,

Wouter Vinck
 
R

Rob Schneider

Wouter said:
Dear newsgroup,

I can open a particular notepad (.txt) file from the DOS
prompt.
I would like to close (and save) .txt files from the
command prompt as well. There does not seem to be a DOS
command that performs this task. Is there a workaround ?
Is it possible to send a wm_close message to the window
from the DOS prompt, and a wm_keydown message to
the "&Yes" button (to save). Can anyone provide an example
of how this may be accomplished ?

Best regards,

Wouter Vinck

Wouter,

Can you please elaborate on what you mean by "close and save" from
command prompt? What are you trying to automate?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top