Computing.Net > Forums > Disk Operating System > strip string character by character

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

strip string character by character

Reply to Message Icon

Name: vascobrito
Date: June 10, 2004 at 12:06:25 Pacific
OS: MsDos 5
CPU/Ram: 486
Comment:

hi there
I need a way to separate a string inputed by user. Like this:
teste.bat abcde
I need to separate each character from the string and assign it to a variable, since i need to use those characters separatly.
how can i do this?
thanks for any help

vb



Sponsored Link
Ads by Google

Response Number 1
Name: Mechanix2Go
Date: June 10, 2004 at 21:35:16 Pacific
Reply:

Hi, vascobrito

With DOS 5 internals only, I can see no way. There are a few small utilities that will help.

How long a user string do you need to process?

Mechanix


0

Response Number 2
Name: vascobrito
Date: June 11, 2004 at 03:23:49 Pacific
Reply:

Well, i found a way that requires qbasic.
But i was in fact trying to do it only with dos.
The user input's a five digit number, that i would have to increment this number by one.
ex. user input : 20010
i will get a file called m20010.txt with ftp, and then i need to get the next one, so the idea is to increment that number to 20011, and the get the m20011.txt file. I can increment the number but the method requires to separate each digit and increment each digit if necessary. what i don't know is how to to separate 20010 in "2 0 0 1 0" to. I still would prefer to do it using only dos.
thanks

vb


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Disk Operating System Forum Home


Sponsored links

Ads by Google


Results for: strip string character by character

Create Autorun.bat Multiple OS's www.computing.net/answers/dos/create-autorunbat-multiple-oss/12165.html

Parsing filenames to variables www.computing.net/answers/dos/parsing-filenames-to-variables/14188.html

A beginner question www.computing.net/answers/dos/a-beginner-question/13757.html