In the following example you will have the capability of creating a time log of when the batch file is loaded or for example in the autoexec.bat when someone logs into a computer.

ECHO. |TIME > TIME
COPY LOG +TIME

For the above batch file to work properly you must create a file called log by typing "edit log" (without the quotes) and then save an exit the file which will create the file at 0 bytes. If this file is not created or not created properly you will receive the error message "Content of destination lost before copy".

START C:\WINDOWS\RUNDLL.EXE user.exe,exitwindowsexec
EXIT 

   MS-DOS COMMANDS 
 
 
A ANSI.SYS | ARP | ATTRIB 
B BREAK 
C CD | CHCP | CHDIR | CHKDSK | CHOICE | CLS | COMMAND | COPY | CTTY 
D DATE | DEBUG | DEL | DELTREE | DIR | DISKCOPY | DOSKEY | DOSSHELL | DRIVPARM 
E ECHO | EDIT | EDLIN | EMM386 | ERASE | EXIT | EXPAND | EXTRACT 
F FASTHELP | FC | FDISK | FIND | FOR | FORMAT | FTP
 
G NONE 
H HELP 
I IFSHLP.SYS | IPCONFIG 
J NONE 
K KEYB 
L LABEL | LH | LOADFIX | LOADHIGH 
M MD | MEM | MKDIR | MODE | MORE | MOVE | MSAV | MSD | MSCDEX 
N NET | NLSFUNC 
O NONE 
P PATH | PAUSE | PING | POWER | PROMPT 
Q QBASIC 
R RD | REN | RENAME | RMDIR | ROUTE 
S SCANREG | SET | SETVER | SHARE | SORT | SUBST | SWITCHES | SYS 
T TIME | TRACERT | TREE | TYPE 
U UNDELETE | UNFORMAT 
V VER | VERIFY | VOL 
W NONE 
X XCOPY  
Y NONE 
Z NONE 
 
   SECRET MS-DOS COMMANDS 
 
 

Please use these commands cautiously some of the commands can erase data and or erase data without warning.

ATTRIB ,  The comma is short for ATTRIB -a -h -r - s *.* (removes all attributes of a file). 
BACKUP /HP Unknown 
DIR , This lists all files including hidden files, does not work in Windows 95 / 98 / NT / 2000 
DIR ... Lists all directories that do not have extensions. In Windows 95 / Windows 98 will list the contents of the directories previous to the directory currently in. 
DOSKEY /APPEDIT Unknown 
DOSKEY /COMMAND Unknown 
DOSKEY /PERMANENT  Unknown 
DOSKEY /SCRSIZE Unknown 
DOSKEY /XHISTORY Unknown 
FDISK /MBR Recreates the Master Boot Record See CH000175 for additional information. 
FDISK /PRI See FDISK Page for additional information. 
FDISK /EXT See FDISK Page for additional information. 
FDISK /LOG See FDISK Page for additional information. 
FDISK /Q Prevents fdisk from booting the system automatically after exiting fdisk.  
FDISK /STATUS Shows you the current status of your hard drives. 
FORMAT /AUTOTEST Formats the hard drive without any prompting. 
FORMAT /BACKUP  Like /AUTOTEST but it will ask you for a volume label. 
FORMAT /Z:n Command used with FDISK supporting FAT32, used to specify the cluster size in bytes where n is multiplied by 512. 
MEM /A or /ALL Adds a line into the MEM command tells the available space in HMA. 
RESTORE /Y Unknown 
RESTORE /Z Unknown 
SET DIRCMD=0 Will make all directories hidden however still accessible, to get them back SET DIRCMD= 
SHARE /NC Unknown 
TRUENAME Put before a file will display the whole directory which it exists. 
VER /R Tells you the Revision and if DOS is in HMA. 
 

    Source: geocities.com/thewebmasterx