Computer Hope

Microsoft => Microsoft DOS => Topic started by: diablo416 on October 30, 2007, 09:12:47 PM

Title: anyway to..
Post by: diablo416 on October 30, 2007, 09:12:47 PM
is there a way to get input character by character?
Title: Re: anyway to..
Post by: Dusty on October 31, 2007, 12:07:37 AM
Input from where ??? ??? ??? ??? ??? ??? ??? ???
Title: Re: anyway to..
Post by: WillyW on October 31, 2007, 10:48:47 AM
is there a way to get input character by character?

Are you using WinXP?
Is this to be within a batch file?
Did you mean to get input from the user, via the keyboard?
After you get the input, did you mean to save it in a variable?


In the meantime, you might like to check out:
http://www.computerhope.com/sethlp.htm
Be sure to see the part about the  /P   switch.
It might be what you are looking for.     Let us know, please.
Title: Re: anyway to..
Post by: diablo416 on November 01, 2007, 06:16:49 AM
thanks but what i mean is , input from a file from a user..

say you have a file with this in it

sofdss ssssssss ssssskfodsfkdsodsfdsofm dsosanvnaioamzl
sfodkfdsojsaninrstnoinweonweiowniowemrw rmwrwmorwpw.

i want to be able to take a word, divide all its letters
just without doing this .. 
for /f "tokens=1 %%a in ('type %temp%\trr') do set a=sofdss sssssss ss ssskodfksokd ect...
set a=%a:~0,1%
set b=%a:~1,1%
ect..

so it could take the input from me and shift all the letters around as a cheesmo method of encryption?

is their any better way of doing this?