| View previous topic :: View next topic |
| Author |
Message |
Florian Zumkeller-Quast Guest
|
Posted: Wed Dec 08, 2004 3:42 pm Post subject: system |
|
|
hi
wie kann ich das betriebssystem(dos oder linux[bash])anweisen einen
befehl auszuführen z.b.copy bzw. cp oder dir/ls oder eine externe
anwendung deren source code ich nicht hab z.b. edit/joe????????
gibts da vorgefertigte funktione in irgendwlchen headern?????
danke!!!!
flo
--
de.comp.lang.iso-c++ - Moderation: mailto:voyager+mod (AT) bud (DOT) prima.de
FAQ: http://www.voyager.prima.de/cpp/ mailto:voyager+send-faq (AT) bud (DOT) prima.de
|
|
| Back to top |
|
 |
Dirk Clemens Guest
|
Posted: Wed Dec 08, 2004 6:59 pm Post subject: Re: system |
|
|
Florian Zumkeller-Quast wrote:
| Quote: | hi
wie kann ich das betriebssystem(dos oder linux[bash])anweisen einen
befehl auszuführen z.b.copy bzw. cp oder dir/ls oder eine externe
anwendung deren source code ich nicht hab z.b. edit/joe????????
gibts da vorgefertigte funktione in irgendwlchen headern?????
danke!!!!
flo
|
Schaue dir mal die Funktion system() an.
Du verlässt allerdings den Standard damit.
Lemmi
--
de.comp.lang.iso-c++ - Moderation: mailto:voyager+mod (AT) bud (DOT) prima.de
FAQ: http://www.voyager.prima.de/cpp/ mailto:voyager+send-faq (AT) bud (DOT) prima.de
|
|
| Back to top |
|
 |
Dirk Clemens Guest
|
Posted: Wed Dec 08, 2004 7:00 pm Post subject: Re: system |
|
|
Dirk Clemens wrote:
| Quote: | Florian Zumkeller-Quast wrote:
hi
wie kann ich das betriebssystem(dos oder linux[bash])anweisen einen
befehl auszuführen z.b.copy bzw. cp oder dir/ls oder eine externe
anwendung deren source code ich nicht hab z.b. edit/joe????????
gibts da vorgefertigte funktione in irgendwlchen headern?????
danke!!!!
flo
Schaue dir mal die Funktion system() an.
Du verlässt allerdings den Standard damit.
|
P.S.: Alternativen sind noch die exec*() Funktionen.
--
de.comp.lang.iso-c++ - Moderation: mailto:voyager+mod (AT) bud (DOT) prima.de
FAQ: http://www.voyager.prima.de/cpp/ mailto:voyager+send-faq (AT) bud (DOT) prima.de
|
|
| Back to top |
|
 |
Stefan Reuther Guest
|
Posted: Wed Dec 08, 2004 8:32 pm Post subject: Re: system |
|
|
Florian Zumkeller-Quast wrote:
| Quote: | wie kann ich das betriebssystem(dos oder linux[bash])anweisen einen
befehl auszuführen z.b.copy bzw. cp oder dir/ls oder eine externe
anwendung deren source code ich nicht hab z.b. edit/joe????????
|
Deine Fragezeichentaste prellt!!!!!!!!1111111
| Quote: | gibts da vorgefertigte funktione in irgendwlchen headern?????
|
std::system aus <cstdlib>. Steht doch schon im Betreff.
Stefan
--
de.comp.lang.iso-c++ - Moderation: mailto:voyager+mod (AT) bud (DOT) prima.de
FAQ: http://www.voyager.prima.de/cpp/ mailto:voyager+send-faq (AT) bud (DOT) prima.de
|
|
| Back to top |
|
 |
|