Simple DOS command info required

Reply

Join Date: Apr 2009
Posts: 16
Reputation: bugista is an unknown quantity at this point 
Solved Threads: 0
bugista bugista is offline Offline
Newbie Poster

Simple DOS command info required

 
-1
  #1
Jun 16th, 2009
Dear All
I have written a MSDOS program to manipulate strings. My requirement is almost done except one. I need to convert a particular string which is in lower case to uppercase and print it to the user.

Do we have any command to do that in DOS or we need to encounter each character get its ascii value and so on.
Never Say Never
Reply With Quote Quick reply to this message  
Join Date: Jun 2009
Posts: 61
Reputation: gurukid22 is an unknown quantity at this point 
Solved Threads: 4
gurukid22 gurukid22 is offline Offline
Junior Poster in Training

Re: Simple DOS command info required

 
0
  #2
Jun 16th, 2009
I dont think thats possible by function unless you write the a statement for each case like

If %Letter% == "a" then %Letter% = "A"

And go through for each letter.

Otherwise you can pass the string to a vb script the funtion to convert string to upper case in VBS is UCase(VARIABLE) "very easy to use"

If you need more detail please dont hesitate to ask
Reply With Quote Quick reply to this message  
Join Date: Aug 2009
Posts: 113
Reputation: stvrich is an unknown quantity at this point 
Solved Threads: 1
stvrich's Avatar
stvrich stvrich is offline Offline
Junior Poster

Re: Simple DOS command info required

 
0
  #3
Aug 30th, 2009
I don't suppose you are familiar with the old Quick-Basic? are you? (and if you happen to be able to make/compile an executable dos program to call from a batch file?) you can read/change the string THAT way.

If you want to stay totally old school that is.
And do it with the older tools.

I also just looked over an old book I've got on Assembly language subroutines for DOS... looks like you can do it THAT way too, but I've never USED that. I'm laughing as I look at it... I have used Quick Basic and PDS.

but, honestly Sounds MUCH easier to do it gurukid22's way and use scripting functions that are available.
Ellis
Trapped in Time
Surrounded by Evil
Low on Gas

AoD
Reply With Quote Quick reply to this message  
Join Date: Aug 2009
Posts: 113
Reputation: stvrich is an unknown quantity at this point 
Solved Threads: 1
stvrich's Avatar
stvrich stvrich is offline Offline
Junior Poster

Re: Simple DOS command info required

 
0
  #4
Aug 30th, 2009
yeah, this IS an old post. Just noticed it...
Ellis
Trapped in Time
Surrounded by Evil
Low on Gas

AoD
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC