Looking forums, I see that:
system("\dir\file.exe");
...opens everything. Ok.
Using what i've learned, I created a program that show a menu with name of programs (one pdf, winamp, code::blocks, jdownloader etc) and I choose that ones that i want open (so, when i start windows, i just open this program and choose them, so will clean my desktop of icons, because I usually open the same files).
I store them in a string. For exemple, the string receives: abef
So, will open listed programs in menu (the 'a', 'b','e' and 'f' programs).
Open the first...but, until I close this file, the second doesnt open
Why?
-----------------
Thinking in a solution, this led me to an idea and another doubt and another failed attempt (normal).
Idea:
With the program (begin.exe), i open the first program in the list ('a', usually winamp, with Rush songs), and pass the string with others programs that i want open to other executable (opener.exe) and exits this first program (begin.exe), because was possible open just once program at time with my idea of system().
So, this another program(opener.exe) receives argc and *argv passed from the first program, use the first string in argv to open the next program ('b'), pass the remaining strings to this same second program (opener.exe...yes open it again), but now is with different argc & argv, and exits (the first opener.exe) and on and on...
Like a recursively opens of the same program.
So, how I pass argc and argv to open another executable? By now, i just used argc and argv to open .exe by the terminal.
How I use a navigation in my program, like a terminal command? To see the directories, files and open that one?
-------------
Another failed attempt:
I tried this thing of opening the same file that i'm executing...but doesn't work.
I open one program each time, do open the next file ('b'), call this program that i'm running (to open 'c', now) and exits...but it's not possible...
just open the second called program if i finishes the file that i opened with the system...
seems that system() create a relation with the file opened...
thanks

New Topic/Question
Reply



MultiQuote






|