Search found 1 match
- 29 Nov 2016 18:02
- Forum: DOS Batch Forum
- Topic: How to search a string for a literal character
- Replies: 2
- Views: 2990
How to search a string for a literal character
Hello, all, I have done some batch scripting with cmd.exe in the past, but have some new challenges. Is there a way to find whether a certain character appears in a string? Say I'm prompting for a single-word string (no need for special characters) using SET /P someword=Enter a word: What next?