Code: Select all
output colours r g b y v
(The syntax is: output [profile] [output names])
It takes these arguments, and is supposed to put text up on the screen accordingly. There's a file called colours.ini that it looks in to know what to say. This looks like:
Code: Select all
[Text Configuration]
fc=0
bc=F
r=red
o=orange
y=yellow
g=green
b=blue
i=indigo
v=violet
Here's a draft of the code:
Code: Select all
@echo off
for /f "delims=" %%a in ('findstr /r /v /c:"^\[.*\]$" "%1.ini"') do set "%%a"
color %bc%%fc%
cls
shift
:loop
if defined %1 (
::DON'T KNOW WHAT TO PUT HERE!!!
::ECHO SOMETHING???
shift
goto loop
)
It needs to put the output in order of what's in the arguments etc, etc.
But my problem is this:
I don't know how to take %1, find the variable with a name that equals %1's content and echo that variable...
Hope it makes sense
Please Help!
Thanks,
phillid