Uhhhh.......i read the FAQ and i tried the system(""); and the spawn whatever........and it just doesn't seem to open it. can you help me?
Printable View
Uhhhh.......i read the FAQ and i tried the system(""); and the spawn whatever........and it just doesn't seem to open it. can you help me?
can you be a tad more specific?
system("")?????
Your passing nothing to the command processor????
What are you trying to do?
oh lol....i forgot something....
im trying to open an .exe file
ok thats what im trying to do
Code:#include<cstdlib>
int main()
{
system("sol.exe");
return 0;
}
yeah except it doesn't do anything, do you have to add like c:\abala\adas\asad.exe???
Quote:
Originally posted by bluehead
yeah except it doesn't do anything, do you have to add like c:\abala\adas\asad.exe???
Dont forget the extra escape charCode:#include<cstdlib>
int main()
{
system("c:\\abala\\adas\\asad.exe");
return 0;
}
lol, that was funny <dont ask>
i try
DARNIT:
CODE______________________________
#include <conio.h>
#include <stdlib.h>
int main()
{
system("C:\\BORLANDC\\Bin\\FF7QUIZ.EXE");
getch();
return 0;
}
END______________________________
OUTPUT___________________________
END______________________________
nothings happening!!!!!!I am getting mad!!! PLEASE HELP ME
<RANT>
Oh god!!! Why do people insist on putting that crap getch thing on the bottom so they can double click????? If you want a console program.......run from the command line!!!!! The person who came up with the pause trick should be shot!!!!!!
</RANT>
:) Sorry about that....try running from the command line :)
i guess thats why my post about using getch was deleted?
HEY, that getch crap works like hell with me, so dont be saying crap about it, ok? now just answer my question!
lol sorry bout that
I guess the FAQ's aren't specific enough, please help me
ROFL
uh... but... System isn't the best way to open programs, I think it can only run console/DOS programs? ^^