#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.

Recommended Answers

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

Jump to Post

All 2 Replies

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 1.21 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.