1
I created a small script (.bat
) for the installation of several programs silently.
Over time the programs keep updating requiring me to edit the code to put the version number of the program.
Doubt: It would be possible to tell the CMD that regardless of the end of the program name it can locate this program and install?
Example of how it is.
start cmd /C "Winrar 5.40 (x64)" /S
start cmd /C "Chrome 56" /silent /install
start cmd /C "Firefox 52.0 (x64)" -ms
Example of how I wanted it to be. (Locate independent of the end of the main name).
start cmd /C "Winrar *" /S
start cmd /C "Chrome *" /silent /install
start cmd /C "Firefox *" -ms
I studied SQL and when you need to say everything we use *
.
I thought I could use *
to do the same at CMD but this does not apply
because every language is a situation.
Are you making a script for this or will make manual?
– Randrade
Did I get it wrong or does he need help creating a batch script? I don’t understand why it’s outside the scope.
– Murillo Goulart
Junior, try [Dit] your question and explain better what you need to do and where the difficulty is. I could understand the part of ignoring the number, but there are still details to imagine where the name will come from, what the criteria to know what to do, and several other points. If the issue makes the doubt clear, and is really within the scope of the site, it can be reopened.
– Bacco
I updated the text I hope it helps clarify.
– Júnior
@Bacco considered reopening now?
– Murillo Goulart
@Murillogoulart needs four more votes to reopen besides mine. There are still some things that could be better explained, for example, if you have 2 executables with the same start in the same directory, what the criteria, etc.
– Bacco
@Bacco I got it. I was only in doubt if the people who voted to close saw the issue.
– Murillo Goulart
@Murillogoulart does not need to be the same staff. Anyone with enough score sees the issue in the analysis queue. Any 5 votes open.
– Bacco
Ola Murillo all right I was looking for exactly this bat I would only need if you could help me in relation to it, as I do so that it tamben run a file (msi) create a bat only and that when put it in a folder with program . exe it will run as tamben if that same bat I put in a folder with a program . msi ele tamben execute e no mode de administrador Desde de ja muito obrigo e espera retorno At: James
– James Fernando Pires