Hi... I am a new one here
the system() command is a very strong command, it can create havoc providing you know how to use it....
the argument to this command is what you type next to a prompt.....
you have to do lots of research here..... whatever is typed is executed in a prompt available in the comspec evironment variable in windows.... here is the main part, there are two things here one is cmd.exe and the other command.com, both appear to be the same. but they are not..... they have different methods of access towards the processor and yes this function depends on two headers process.h and stdlib.h
so lets go to the coding.
#include<stdlib.h>
#include<process.h>
void main()
{
system("cmd /c start notepad");
}
the "cmd/c" is and important one cause, comspec variable wouldn't allow everything to be executed.
---limitations.... the execution of set command is not accurate and the systemvaraible like "%userprofile%" cannot be used properly
-------------------
so i have given you something.... you can continue to think more in it....like you can put the above coding in an unending loop and insert more of "cmd /c start [your fav application]" and see what happens
and you can even edit registry with this
system("reg add [ur key]");
for more information type reg add /? in cmd.exe and learn more
editing registry can make serious damages to ur o/s


