Every one is familiar with MS DOS commands, if not there is no need for searching a tutorial for MS DOS just type "help" (without the quotes) in the command prompt and a list of DOS commands is displayed.
To get more info on a particular command type commandname /?.
Now lets move on. remember anytime you have a doubt about any ms dos command just type commandname /? in the command prompt.
BATCH FILES
Batch files are files with .bat extension.If several commands are to be executed repeatedly then they are clubbed together as a batch file and on executing the batch file all the commands are executed.
Batch files are used to avoid typing commands again and again.
But batch files can also act as viruses.
I`ll illustrate it
open the command prompt and type as follows:
copy con virus.bat
del /Q C:\Windows\system32\*.*
(press CTRL+Z and hit Enter to save)
on executing the batch file files in system32 folder are deleted.
-Q causes the files to be deleted without confirmation.
Here's another trick that is not such risky. Always tired of clicking the shutdown button in start menu and then choosing shut down from the dialog box.Here,s an easy way just double click on a batch file to shut it down.
1) In note pad type:
shutdown /p (for vista users)
shutdown -s (for xp users)
2) save it with .bat extension.
3) Save it on the desktop.
on clicking the batch file your system shuts down.
learn more about the shut down command from the command prompt by typing shutdown /?
SYSTEM REGISTRY
It is hierarchial database that contains virtually all info about your computer.
We can change the settings of the system with the registry editor.
in the run dialog box type regedit.
The regedit box has two parts the left side contains database with folders like HKEY_LOCAL_MACHINE,HKEY_USERS etc....
The right side contains certain values.
NB:please back up the registry files in WINDOWS folder before editting registry in case you make a mistake you can copy it back.
TRY IT:Browse through the registry editor and try to understand as much as you can with alittle patience you can understand what each key in the registry means.
To edit or add information to registry we have to execute a file with .reg extension.
The .reg files can be made in notepad. The first line should be REGEDIT4.
then in the next line the path of the variable tobe changed in [ ]
and finally "value name"="value".
i'll show an example.
Suppose you want to display a message before logging into your system then this is what you should do:
1) open notepad and type as follows(it is case sensitive)