Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How to simulate pressing an "ok" prompt in a batch file

134 views
Skip to first unread message

Giampaolo

unread,
May 20, 2006, 6:22:35 PM5/20/06
to
Hello.

I would like to know if it is possible in Win98 SE, from a batch file,
to simulate pressing an "ok" prompt. I have a batch file that calls an
executable (of which I don't have the source file) that processes a
file and produces another file as a result. At the end of the process,
a feedback window is produces, that says "file blahblah has been
successfully created", and pressing an "Ok" button is the only way to
get rid of the window.
As I need to repeat this process a high number of times in batch mode,
without user interaction, I need to find a way to get rid of the ok
button. I have checked the executable parameters, but unfortunately
there is no parameter to skip the final ok prompt.
Thanks for any help,
Giampaolo Costantini
Parma Italy

Herbert Kleebauer

unread,
May 21, 2006, 3:46:16 AM5/21/06
to
Giampaolo wrote:

This depends on the used program. Use Google to search in alt.msdos.batch
and alt.msdos.batch.nt for older answers to this question.

gcos...@provincia.parma.it

unread,
May 21, 2006, 6:43:22 AM5/21/06
to
Thanks. The program is (Win98) defrag.exe.
Unfortunately so far my search hasn't produced results. Please consider
that I'm a beginner

Herbert Kleebauer

unread,
May 21, 2006, 9:47:39 AM5/21/06
to

Did you try:

defrag /noprompt c:

Giampaolo

unread,
May 22, 2006, 12:01:39 PM5/22/06
to
It works! Thanks a lot

0 new messages