Running a program in batch

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
dannad
Posts: 1
Joined: 23 Jan 2025 04:09

Running a program in batch

#1 Post by dannad » 23 Jan 2025 04:19

Ho to everyone,

I would like to write a batch that run a software recursively simulating the uman keyboard input.
I will explain better.

I need to run in batch a software, designed for dos, that when started ask for some parameters,
the parameters are 5 numbers and an Y as last answer. After the software finish the run it need
to insert another set of input and so on for another run.

I am not able to find any info around the web, maybe I wrong the question, can someone help me?

dannad

aGerman
Expert
Posts: 4702
Joined: 22 Jan 2010 18:01
Location: Germany

Re: Running a program in batch

#2 Post by aGerman » 23 Jan 2025 11:10

The reason why you didn't find anything useful in the web is that Batch is not capable to interact with a window. You can't send keyboard or mouse input to a window without the aid of other languages or third party software. There are scripting langues that are more suitable, and there are languages especially designed to do those tasks (e.g. AutoIt).

Steffen

Post Reply