First off, "I cant ..." doesn't tell us anything about the problem you are having - we know you have a problem or you wouldn't be posting here, but we can't see your screen, access your HDD, tell what you typed, or read your mind!
So start by learning how to ask a question: remember the above, and that we get no context beyond exactly what you type - so it's important to give us information:
What have you tried?
Where are you stuck?
What have you done to try and find out what the problem is?
What help do you need?
The better your question, the better our answer!
Secondly, indent your code: A single indent for the one any only function you write isn't enough, you need to indent each time you add an
, or a
to make your code readable.
Thirdly, stop commenting what the instruction is doing, and comment why you are doing it:
textcolor(2); // for a text color in c programming
Is a useless comment:
textcolor(2); // Set to Green test
Is much better,
Doesn't need a comment at all ... Apply that to all your code: comment why you do something, not what your code is doing - we can see that because we can read the code!
Finally, your code doesn't try to use chmod - it doesn't even compile with the current code:
test=system(C:\\Windows\\System32\\ipconfig);//chmod is command to hide the folder or file
Only show us code that compiles if you want us to help you with running code, because unless it compiles, it won't run! And show us the code that does run, and explain what happens when you run it, along with the actual values in any variables (use the debugger to work out exactly what they are - don't guess or assume!)