![ישן](https://static.fresh.co.il/images/vBulletin/statusicon/post_old.gif)
07-05-2008, 13:26
|
![צלמית המשתמש של maind](image.php?u=8650&dateline=1189278858) |
|
|
חבר מתאריך: 08.10.02
הודעות: 827
|
|
שחכתי שגם ב C יש system
אז ניתן להשתמש בה ככה:
קוד:
#include <stdlib.h>
char *ExecuteThis = "C:\\Windows\\Notepad.exe new.txt";
void main( int argc, char *argv[]) {
system(ExecuteThis);
}
עושה כמעט אותו דבר חוץ מזה שזה מריץ בעצם דרך ה CMD ולא ישירות.
_____________________________________
Error: Keyboard not found
Press F1 to continue
|