L
L
lik1732022-01-22 13:34:41
cmd/bat
lik173, 2022-01-22 13:34:41

How to run a batch file with an unknown name ending?

Suppose there is a file habr1234abcd.bat
1234abcd are unknown, that is, habr * .bat
But it didn’t work for me.
I tried doing habr.1234abcd.bat and writing habr.*.bat

Why? How to do this?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
H
hint000, 2022-01-22
@lik173

Here is your question and answer, just replace .exe with .bat:
https://stackoverflow.com/questions/15724908/how-t...
more results from google:
https://stackoverflow.com/questions/33248840 /run-e...
https://superuser.com/questions/264461/start-a-pro...

A
Anton, 2022-02-15
@KJhas

for %a in (habr*.bat) do %a

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question