Go back to Richel Bilderbeek's homepage.
Go back to Richel Bilderbeek's C++ page.
Technical facts
Operating system(s) or programming environment(s)
IDE(s):
Project type:
C++ standard:
Compiler(s):
Libraries used:
STL: GNU ISO C++ Library, version 4.9.2
Qt project file: ./CppStdSystemExample2/CppStdSystemExample2.pro
./CppStdSystemExample2/main.cpp
#include <cstdlib>
int main()
{
std::system("mkdir tmp & cd tmp && dir *.* > output.txt && type output.txt"); //On Windows
}
/* Screen output:
A subdirectory or file tmp already exists.
Volume in drive D is DATA
Volume Serial Number is 6E49-4539
Directory of D:\Projects\Test\build-CppStdSystemExample2-Desktop_Qt_5_1_1_MinGW
_32bit-Debug\tmp
03/20/2014 03:43 PM <DIR> .
03/20/2014 03:43 PM <DIR> ..
03/20/2014 03:43 PM 0 output.txt
1 File(s) 0 bytes
2 Dir(s) 202,344,558,592 bytes free
Press <RETURN> to close this window...
*/
|
Go back to Richel Bilderbeek's C++ page.
Go back to Richel Bilderbeek's homepage.

This page has been created by the tool CodeToHtml