Skip to main content
deleted 26 characters in body; edited tags; edited title
Source Link
Eric Leschinski
  • 155.2k
  • 96
  • 423
  • 337

dos DOS: find a string, if found then run another script

I want to find a string in a file using dos.DOS:

e.g.For example

find "string" status.txt

And when it hasis found it, i wasI want to run a batch file (like an if-else statement). How can I do it?

Regards

ManjotWhat is the best way to do this?

dos: find a string, if found then run another script

I want to find a string in a file using dos.

e.g.

find "string" status.txt

And when it has found it, i was to run a batch file (like an if-else statement). How can I do it?

Regards

Manjot

DOS: find a string, if found then run another script

I want to find a string in a file using DOS:

For example

find "string" status.txt

And when it is found, I want to run a batch file.

What is the best way to do this?

Source Link
Manjot
  • 11.6k
  • 9
  • 40
  • 50

dos: find a string, if found then run another script

I want to find a string in a file using dos.

e.g.

find "string" status.txt

And when it has found it, i was to run a batch file (like an if-else statement). How can I do it?

Regards

Manjot