Basic Commands
cls (To clear the screen)
date (To see the date)
time (To see the time)
vol (To see the volume)
ver (To see the version)
chkdsk (To check disk space)
exit (To come out)
cd.. (To remove the current directory)
copy con filename (To create a file. Insert the matter and then save using ctrl+z or F6)
type filename (To see the file)
del filename (To remove the file)
copy old_filename new_filename (To copy the old file into new file)
ren old_filename new_filename (To remove the old file into new file)
edit filename (To edit the file)
echo off (To remove dos prompt)
echo on (To get dos prompt)
copy first_filename+second_filename new_filename (To combine two files into a single file)
md directoryname (To make a directory)
cd directoryname (To change the directory)
rd directoryname (To remove the directory)
cd/ (To remove all directories at a time)
more filename (To see the file)
Commands to see directories
dir (To see the directory)
dir/p (To see the directory page wise)
dir/w (To see the directory in columns)
dir/w/p (To see the directory in columns page wise)
dir/s (To see all files of that drive)
dir/l (To see directories in small letters)
dir/l/p (to see directories in small letters and page wise)
dir/b (To see only filename)
dir/b/p (To see only filename page wise)
dir/on (To see directories in ascending order by name)
dir/o:-n (To see directories in descending order by name)
dir/oe (To see directories in ascending order by extension)
dir/o:-e (To see directories in descending order by extension)
dir/od (To see directories in ascending order by date)
dir/o:-d (To see the directories in descending order by date)
dir/os (To see the directories in ascending order by size)
dir/o:-s (To see the directories in descending order by size)
Wild Card Character
dir a* (To see all the files and directories starting with a)
dir *.a (To see all the files and directories in which a is present after .)
dir ???a??? (To see all the files and directories in which forth letter is a and of 7 letter)
Prompt Command
prompt name (To set the prompt as per the name)
prompt $d (To set the prompt as date)
prompt $t (To set the prompt as time)
prompt $p$g (To come back in the original prompt)
Attrib Command
atttrib +h filename (To hide the file)
attrib -h filename (To unhide the file)
dir/ah (To see the hidden file)
attrib +r filename (To make file read-only)
attrib -r filename (To remove the file's read-only)
attirb filename (To see the attributes of file)
Wednesday, October 14, 2009
Subscribe to:
Post Comments (Atom)

No comments:
Post a Comment