system32\cmd.exe taking too long to load file
I am using the system(START Outputfile);
command in my program to display the outputfile to the screen and it is taking about 1 minute to be displayed. I would like to know what could be causing the problem.
I am letting the user input the filename, I open the file, write to the file and close file and then I use the system command to display the file. I don't know if it is related to how big the file is. I know the file is created with the results, because I see it my directory.
Also could it be I am killing a process before I call the system call. Please I need some ideas.
Re: system32\cmd.exe taking too long to load file
What is the contents of outputfile?
Why don't you use ShellExecute or ShellExecuteEx to display the file? That is the windows way of doing that.