Hi Everyone , I have some doubts which i have encounteered when i was working on a project of mine,
1)I was wondering whether system("sky.exe") could have variables in it. can i use a string in the place of "sky.exe" something like this
string s;
s="sky.exe";
system(s);
2) Can i execute a program in a new window? i mean in a new command prompt?
3) My Third doubt is how to read from another exe files output.
I mean
Example:
I have file1.exe
i execute "sky.exe" through "file1.exe" like system ("sky.exe")
and then sky.exe provides some output. That output again has to be brought into file1.exe as an argument or into a string variable. How do i do that?
4) The New Command Prompt which appears has to be closed by the exe itself so is there anyway of closing that exe program externally from my program?
----------------------------------------------------------------------------------------------
Can this be done considering that sky.exe cannot be edited. i MEAN DOESNT have any source code that i can edit.
----------------------------------------------------------------------------------------------