I need to call an exe through C code but it requires some environment to be set before calling the exe.
The environment is set using a bat file.
Is there any way i can set the environment and then call the exe in the same command prompt using the system() call in C.
Thanks.