Pelles C forum

Pelles C => General discussions => Topic started by: post from old forum on September 13, 2004, 11:37:47 PM

Title: int __cdecl system(char*)
Post by: post from old forum 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
Title: int __cdecl system(char*)
Post by: post from old forum 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