07-05-2008, 13:26
|
|
|
|
חבר מתאריך: 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
|