Before I begin, I have to tell you I'm from Argentina ( if you haven't noticed that...) so maybe I'll have some bad writing; don't bother: I'm an English learner, I can make mistakes...
Well, let's get back to the point: help me!
I wanted to know if these situations are possible for batches:
1. Is it possible for a batch to write the content of a file (supposing <=2kB) in the screen?
2. I know that batch variables can be stored in files, but is it possible that a variable can be set from the content of a file? See this example:
3. Is it possible for a batch to do the same action as before but with the *.ini style?Supose I'm doing a game I need record hiscores. I got the file bestscore.num (*.num to remind me I'm introducing a number) and I got bestscore.str (*.str to remind me I'm introducing a text string). I want the file, when I ask it to show this data. How do I do it?
Supose I want to write ECHO Today's High Score: %hiscorename% who made %hiscore% points. (Please note that hiscorename=bestscore.str and hiscore=bestscore.num)
4. Is it possibe for a batch to write ASCII characters both ofr the screen and for files? (for example: char 1 = ☺, char 2 = ☻, and so on) How can be implemented it?Taking back the last example, I got bestscore.ini instead of the two files. Inside it, I got:
HiScore=10000
HiScoreName=Machine
Is it possible for a batch to read the variable after the "="? (Go to Line 1, Column 8 and read %hiscore% and so on?)
That are my questions by now. Hope you can help me!
Thanks!
SonicARG
///EDIT MESSAGE///
Problems 2 & 3 were solved: I got several programs that solved them and helped me a lot. Just have a look at http://www.fpschultze.de/ for loads of programs ready for DOS.
Thanks anyway! I'm still waiting for #1 & #4.
SonicARG