Expand|Select|Wrap|Line Numbers
- char chBuffer4[]= "net stop mailservice";
- char chBuffer5[128];
- int lastChar;
- FILE *fp;
- fp = popen(chBuffer4, "r");
- lastChar = fread(chBuffer5, 1, 128, fp);
- chBuffer5[lastChar] = '\0';
- printf ( chBuffer5 );
- fclose(fp);
I've been working on this for awhile now, and I am slightly baffled as this formate of code usually works on *nix servers, but it won't work on windows.
Any idea's? Suggestions?