Answer the question
In order to leave comments, you need to log in
How to execute a command in bat depending on the presence of a substring in a string?
I'm completely 0 in scripts, tried a lot but nothing happened.
In general, you need to do this in bat:
if there is a substring "xxx" in% computername%, then execute the command [command], otherwise move on
Answer the question
In order to leave comments, you need to log in
The FIND command returns different ERRORLEVEL values depending on whether the value you are looking for is found or not.
Next in the script, you need to use the if statement.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question