MS DOS
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
Go Back   Web Development Archives FAQs MS DOS

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Web Development Archives Sponsor:
  #1  
Old May 22nd, 2008, 03:09 PM
myworldplz myworldplz is offline
Registered User
Dev Archives Newbie (0 - 499 posts)
 
Join Date: May 2008
Posts: 6 myworldplz User rank is Just a Lowly Private (1 - 20 Reputation Level)  
Time spent in forums: 2 h 23 m 29 sec
Reputation Power: 0
***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.

Reply With Quote
  #2  
Old May 29th, 2008, 02:17 PM
wwjdcsk wwjdcsk is offline
Registered User
Dev Archives Newbie (0 - 499 posts)
 
Join Date: May 2008
Posts: 6 wwjdcsk User rank is Just a Lowly Private (1 - 20 Reputation Level)  
Time spent in forums: 1 h 32 m 50 sec
Reputation Power: 0
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

Reply With Quote
  #3  
Old June 6th, 2008, 09:09 PM
myworldplz myworldplz is offline
Registered User
Dev Archives Newbie (0 - 499 posts)
 
Join Date: May 2008
Posts: 6 myworldplz User rank is Just a Lowly Private (1 - 20 Reputation Level)  
Time spent in forums: 2 h 23 m 29 sec
Reputation Power: 0
Thanks! Much appreciated I'll check it out!

Thanks much appreciated btw!

Reply With Quote
Reply

Viewing: Web Development Archives FAQs MS DOS > ***Find certain word in variable***


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway