NO

Author Topic: int __cdecl system(char*)  (Read 4401 times)

post from old forum

  • Guest
int __cdecl system(char*)
« on: September 13, 2004, 11:37:47 PM »
I read the thread about the int system(...) and I wonder now that what else can I write into this function? Can I write commands? e.g. system("PAUSE"), system("STOP") system("RESTART"). If so where can I find these commands?

BTW Thank you for this great IDE Pelle!  

duru

post from old forum

  • Guest
int __cdecl system(char*)
« Reply #1 on: September 13, 2004, 11:38:15 PM »
Yes, you can use Windows 'command line' commands, like DIR, XCOPY, SORT and VER. At least in my Windows XP Help, I can find information about them (XCOPY is a good search word).
You can also run other programs through system.

Examples:
ret = system("dir *.* /w");

ret = system("notepad somefile.c");

...and thank you!

Pelle