Wednesday, June 23, 2010

My simple batch file tutorial [Part 8]

This is truly the final part of the simple batch file tutorial :) Yipee , today we are going a bit down to the directory leveling .

Directory leveling is same as the folder directory level when you want to hide *something* from your family. :)  where you hide inside folder upon folder level . :) The directory leveling is somewhat similiar to this.

By the way, It is the time for you to fully explore the programs. It is still *a bit* buggy but if you helped me to fix the bugs (at least for Window Vista!) I would credit you . :) Enjoy the source code for the K-Ok machines. Hope you will learn about the errorlevel here

Don't mind about the unknown symbols, they will display just fine in the batch file command prompt later on.




@echo off
:start
cls
title Zeushammer Karaoke Machine Box V6.0!
echo          ÉÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ»
echo          º  Karaoke Machine Box  º
echo          ÌÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ͹
echo          º 1. +Select Artist     º 
echo          º 2. +Select Titles     º     
echo          º 3. +Keys              º
echo          º 4.  Play              º
echo          º 5.  Exit              º
echo          ÈÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍͼ 
echo  Select [1,2,3,4,5]


choice /n /c:12345
if errorlevel ==5 goto exit 
if errorlevel ==4 goto playempty 
if errorlevel ==3 goto key 
if errorlevel ==2 goto songtitle 
if errorlevel ==1 goto artistitle 




:artistitle
cls
echo          ÉÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ»
echo          º  Karaoke Machine Box  º
echo          ÌÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ͹
echo          º 1. +Select Artist     º 
echo          º         1.Taylor Swiftº 
echo          º         2. Lady Gaga  º
echo          º 2. +Select Title      º     
echo          º 3. +Keys              º
echo          º 4.  Play              º
echo          º 5.  Exit              º
echo          ÈÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍͼ 
echo  Select [1,2]


choice /n /c:12
if errorlevel ==2 goto lg
if errorlevel ==1 goto ts






:lg
cls
echo          ÉÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ»
echo          º  Karaoke Machine Box  º
echo          ÌÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ͹
echo          º 1. +Select Artist     º 
echo          º 2. +Select Title      º     
echo          º         1. Telephone º 
echo          º         2. Poker Face º
echo          º 3. +Keys              º
echo          º 4.  Play              º
echo          º 5.  Exit              º
echo          ÈÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍͼ 
echo  Select [1,2]


choice /n /c:12
if errorlevel ==2 goto pokerface
if errorlevel ==1 goto telephone




:ts
cls
echo          ÉÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ»
echo          º  Karaoke Machine Box  º
echo          ÌÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ͹
echo          º 1. +Select Artist     º 
echo          º 2. +Select Title      º     
echo          º         1. Love Story º 
echo          º         2. Our Songs  º
echo          º 3. +Keys              º
echo          º 4.  Play              º
echo          º 5.  Exit              º
echo          ÈÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍͼ 
echo  Select [1,2]


choice /n /c:12
if errorlevel ==2 goto oursong
if errorlevel ==1 goto lovestory




:key
cls
echo Press b if you want to sing in b keys
echo Press # if you want to sing in # keys
pause


:playempty
cls
echo Please select a song to play 
pause
goto start
cls




:pokerface
cls
echo #######################################
echo Now Playing: Poker Face by Lady Gaga
echo #######################################
pause
goto exit


:telephone
cls
echo #######################################
echo Now Playing: Telephone by Lady Gaga
echo #######################################
pause
goto exit


:lovestory
cls
echo #######################################
echo Now Playing: Love Story by Taylor Swift
echo #######################################
pause
goto exit


:oursong
cls
echo #######################################
echo Now Playing: Our Songs by Taylor Swift
echo #######################################
pause
goto exit


:songtitle
cls
echo Beta ! Coming Soon !


:exit 
cls
echo Thank you for purchasing Zeus Hammer Karaoke Boombox System!
pause

No comments:

Another random post to read ? Come !

Related Posts with Thumbnails