Dollars BBS | Technology

feed-icon

Main

News

Animation

Art

Comics

Films

Food

Games

Literature

Music

Personal

Sports

Technology

Random

I need some programming help (1)

1 Name: Jmanisgreat !FzAyW.Rdbg : 2016-02-01 11:41 ID:xDO6eLoo [Del]

So I am making this program in BATCH and it doesn't work. Here's the code along with comments saying what is going on. Any ideas would be great! I'm using Windows 7.

:: ****************************************************************
:COLOR
REM THIS IS THE CURRENT ISSUE!!!!
if not exist installed_programs\accounts\%name%.color goto ukerr
set colset=<installed_programs\accounts\%name%.color
REM So this is the part that is messing up.
color %colset%
echo %colset%
pause
if exist installed_programs\accounts\%name%.color goto home
goto home
:: ****************************************************************
REM What is happening is it is registering colset as 0<installed_programs\accounts\%name%.color
REM That is absolutely nonsense to the program.
REM The output looks like so:
REM set colset= 0<installed_programs\accounts\%name%.color
REM color
REM ECHO is off.
REM PAUSE