Introduction: Disco Lights in Batch

Disco lights always are fun and gives the song you are listening to an awesome effect.
 
 Everyone likes to have a disco light  So Here`s a program that turns your screen to an Awesome Disco light projector.

    

Step 1: Disco Lights in Batch

Now First You must Download a file called as colous.exe from  http://www.mediafire.com/?jzem4xtymkd

And move it to C:\Windows\System32. This File helps in turning off the cursor in a batch file and it helps in giving a better look to the program as the cursor would spoil the "Discolight" effect of the program. (NOTE:It only turns off the cursor temporarily in a batch file and not permanently)
 

Step 2: Disco Lights in Batch

Now open notepad or any text editor

    OR

open command prompt and type edit

Step 3: Disco Lights in Batch

Now Type the following code:-

@echo off
@mode con cols=200 lines=68
colous cursoroff
title DISCO
set txtcolor=A
set OLD=16

:NUMBERSELECT
CLS
SET/A NEW=%RANDOM%/1000
IF %NEW% LEQ 15 GOTO BLW15(1)
IF %NEW% GEQ 15 GOTO ABV15


:BLW15(1)
ECHO %NEW%
GOTO NUMBERSELECT2

:NUMBERSELECT2
CLS
SET/A NEW=%RANDOM%/1000
IF %NEW% LEQ 15 GOTO BLW15(2)
IF %NEW% GEQ 15 GOTO ABV15

:BLW15(2)
if %OLD% EQU %NEW% goto NUMBERSELECT
if %NEW% EQU 0 goto NUMBERSELECT
if %OLD% NEQ %NEW% goto PROJECTCOLOR

:PROJECTCOLOR
set OLD=%NEW%
GOTO %NEW%

:ABV15
GOTO NUMBERSELECT

:1
set bgcolor=1
color %bgcolor%%txtcolor%
ping -n 1 0.0.0.0>nul
goto NUMBERSELECT

:2
set bgcolor=2
color %bgcolor%%txtcolor%
ping -n 1 0.0.0.0>nul
goto NUMBERSELECT

:3
set bgcolor=3
color %bgcolor%%txtcolor%
ping -n 1 0.0.0.0>nul
goto NUMBERSELECT

:4
set bgcolor=4
color %bgcolor%%txtcolor%
ping -n 1 0.0.0.0>nul
goto NUMBERSELECT

:5
set bgcolor=5
color %bgcolor%%txtcolor%
ping -n 1 0.0.0.0>nul
goto NUMBERSELECT

:6
set bgcolor=6
color %bgcolor%%txtcolor%
ping -n 1 0.0.0.0>nul
goto NUMBERSELECT

:7
set bgcolor=F
color %bgcolor%%txtcolor%
ping -n 1 0.0.0.0>nul
goto NUMBERSELECT

:8
set bgcolor=8
color %bgcolor%%txtcolor%
ping -n 1 0.0.0.0>nul
goto NUMBERSELECT

:9
set bgcolor=9
color %bgcolor%%txtcolor%
ping -n 1 0.0.0.0>nul
goto NUMBERSELECT

:10
set bgcolor=A
color %bgcolor%%txtcolor%
ping -n 1 0.0.0.0>nul
goto NUMBERSELECT

:11
set bgcolor=B
color %bgcolor%%txtcolor%
ping -n 1 0.0.0.0>nul
goto NUMBERSELECT

:12
set bgcolor=C
color %bgcolor%%txtcolor%
ping -n 1 0.0.0.0>nul
goto NUMBERSELECT

:13
set bgcolor=D
color %bgcolor%%txtcolor%
ping -n 1 0.0.0.0>nul
goto NUMBERSELECT

:14
set bgcolor=E
color %bgcolor%%txtcolor%
ping -n 1 0.0.0.0>nul
goto NUMBERSELECT

:15
set bgcolor=7
color %bgcolor%%txtcolor%
ping -n 1 0.0.0.0>nul
goto NUMBERSELECT

Step 4: Disco Lights in Batch

Now save it as whatever you want.bat and run it. Now you can see the A  Disco effect. Now you can play a song 
or in the third line you can add a code "start whatever u want.mp3"

 Now you can get a real "DISCO" Experience.

ENJOY!!

Comments

About This Instructable

7,655views

8favorites

License:

More by Prostyle4444:A Simple Computer Prank in VBDisco lights in BatchHow To Make Your Own Clock In batch
Add instructable to: