closing and saving a notepad file from the DOS prompt

  • Thread starter Thread starter Wouter
  • Start date Start date
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
 
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?
 
Back
Top