|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
***Find certain word in variable***
Hey, how can I make it so DOS can find a word in a long sentence in a variable.
Example: Your mother is a _Insert offensive word here_ What I want to do: Your mother is a ********* ========================== Using it for a pretty popular IM system for my school I batched up ;) Would love help I'm good at DOS but no professional. |
|
#2
|
|||
|
|||
|
you can use the magic of set
for example: set string=Your mother is a _word_ set string=%string:_word_=******% for more string manipulation reference: http://www.dostips.com/DtTipsStringManipulation.php |
|
#3
|
|||
|
|||
|
Thanks! Much appreciated I'll check it out!
Thanks much appreciated btw!
|
![]() |
| Viewing: Web Development Archives > FAQs > MS DOS > ***Find certain word in variable*** |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|