http://www.google.co.uk/search?hl=en... mmands&meta=
The best commands to learn are @ ECHO OFF, ECHO., SET, SET /P, IF, GOTO, EQU, * and %, that what I think anyway.
Here is one I made for XP that used SET and IF. Its pointless really but fun to make. It should give you some idea of how the commands can be used:
TITLE Directory Master
COLOR 1F
@ ECHO OFF
:start
CLS
ECHO Please choose from the folowing options...
ECHO.
ECHO 1: Make folder
ECHO 2: Delete file
ECHO 3: Delete folder
ECHO 4: Rename folder or file
ECHO 5: Move folder or file
ECHO 6: Exit program
ECHO.
SET /P CHOICE=
IF %CHOICE% EQU 1 GOTO A
IF %CHOICE% EQU 2 GOTO B
IF %CHOICE% EQU 3 GOTO C
IF %CHOICE% EQU 4 GOTO D
IF %CHOICE% EQU 5 GOTO E
IF %CHOICE% EQU 6 (EXIT)
ECHO.
ECHO Error "%CHOICE%" is not an option. Please try again...
PAUSE
GOTO start
:A
ECHO.
ECHO Please enter the path and name to use for the new folder...
SET /P NEWDIR=
MKDIR %NEWDIR%
ECHO.
ECHO New folder was created at %NEWDIR%
ECHO If no path was given "%NEWDIR%" will have been created in the working directory
pause
GOTO start
:B
ECHO.
ECHO Please enter the full path to the file you would like to delete
ECHO "Wrap the path in quotation marks"
SET /P DELFILE=
IF EXIST %DELFILE% (DEL %DELFILE%) ELSE ECHO Error no file found at "%DELFILE%"
PAUSE
GOTO start
:C
ECHO.
ECHO Please enter the full path to the folder you would like to delete
ECHO "Wrap the path in quotation marks"
SET /P DELDIR=
IF EXIST %DELDIR% (RD %DELDIR%) ELSE ECHO Error no folder found at "%DELDIR%"
PAUSE
GOTO start

ECHO.
ECHO Please enter the full path to the folder you would like to rename
ECHO "Wrap the path in quotation marks"
SET /P RENDIR=
ECHO.
ECHO Please enter the new name...
SET /P RENAME=
IF EXIST %RENDIR% (REN %RENDIR% %RENAME%) ELSE ECHO Error no file or folder found at "%RENDIR%"
PAUSE
GOTO start
:E
ECHO.
ECHO Please enter the location of the folder or file to move
ECHO "Wrap the path in quotation marks"
SET /P MOVDIR=
ECHO.
ECHO Please enter the location you would like to move the foler or file to
ECHO "Wrap the path in quotation marks"
SET /P MOVED=
IF EXIST %MOVDIR% (MOVE %MOVDIR% %MOVED%) ELSE ECHO Error no folder or file exists at "%MOVDIR%"
PAUSE
GOTO start