You must use the function with the correct parameters.
WinExec("c:\\ahul.cmd",SW_SHOWNORMAL);
Normally you wont store an app in the root of C: but in some ProgramFiles directory.
I would recommand that you use the more powerful
ShellExecute because it has more power because of its parameters.