Iam using ShellExecute WIN API to run DOS command because DOS command flashes are seen when i run the application. Below is the ShellExecute API call.
ret = ShellExecute(0, "open", "cmd.exe", "/C ver > version.txt", 0, SW_HIDE);
After this I tried to open version.txt using fopen function but it is returning NULL.
Any help is appreciated.