#include <direct.h>
int main(){
    mkdir("C:\\Program Files\\Bacon");
}

Creates a folder in the folder that the .exe file is in, and is called "Program FilesBacon". I think it's obvious what I wanted it to do. Help please? I'm using codeblocks if it matters.

There is a library to be include. Not sure what it is called... Something that has sys/... in it.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.