Delete duplicated lines [solved]
Posted: 14 Oct 2013 02:14
Thanks a lot to everyone who helped me so far with fine-tuning my chat script!
i am working on a new update for it
the thing is i need to auto delete duplicated lines in a txt file, here is a piece of the script:
it looks messy i know, sorry for that ^^
i am working on a new update for it

the thing is i need to auto delete duplicated lines in a txt file, here is a piece of the script:
Code: Select all
:support
echo %current%>>users.txt
(
set /p user1=
set /p user2=
set /p user3=
set /p user4=
set /p user5=
set /p user6=
set /p user7=
)<users.txt
:main
cls
set name=%current%
echo ÉÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ» ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ
echo ºwelcome to the support centerº ³Others using this script:
echo ÈÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍͼ ³%user1%
echo ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿ ³%user2%
echo ³Make your sellection bellow ³ ³%user3%
echo ÃÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ´ ³%user4%
echo ³[1]-Collor menu ³ ³%user5%
echo ³[2]-Chat name ³ ³%user6%
echo ³[3]-Chatroom ³ ³%user7%
echo ³[4]-Info (w.i.p) ³ ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ
echo ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙ
it looks messy i know, sorry for that ^^