Home > Back-end >  How to implement in C language CD, dir, such as mkdir operation, similar to writing an operating sys
How to implement in C language CD, dir, such as mkdir operation, similar to writing an operating sys

Time:09-20

Operating system, the relevant work tried to use in the main function parameter, but can only display program directory, how can enter other directory, and then to create a new directory in the C language exe directory, create a new file, delete the directory, delete files, etc. CMD the function of the controller can finish?
Going bald, save the children
The finished product is similar to below:

CodePudding user response:

System ()

CodePudding user response:

Packaging good command, call system is a kind of method,
Also can have a look at the system call functions, such as mkdir, access etc. Function

CodePudding user response:

The Windows header files using system () call