Thread: Making a directory?

  1. #1
    Registered User
    Join Date
    Aug 2001

    Question Making a directory?

    I was just wondering, how would I make a direcotry in C or C++ for dos? Like the mkdir command. Just wondering, cause I wanna make a program to help me sort some things.
    If you can help, thanks,
    i'm not stupid, just a little short on brains.
    Kav's game!
    # - Goodguy mc goodguy
    * - Bad guy mc badguy
    $ - Princess Mc Cess
    @ - Mcdonalds Mc chicken! mmmmmm

  2. #2
    A Banana Yoshi's Avatar
    Join Date
    Oct 2001
    system("mkdir NAME");
    NAME is directory.

  3. #3
    I'm Back
    Join Date
    Dec 2001
    i think the mkdir command is in c++.

    It's in dir.h and the syntax is


    also in dir.h you'll get other dir control functions like
    rmdir - remove empty dir
    chdir - change directory etc

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Finding files in a directory
    By smarta_982002 in forum C Programming
    Replies: 1
    Last Post: 01-25-2008, 09:10 AM
  2. Building a tree from a directory structure
    By geekoftheweek in forum C Programming
    Replies: 2
    Last Post: 11-26-2007, 02:15 AM
  3. About current working directory
    By George2 in forum Linux Programming
    Replies: 3
    Last Post: 05-02-2007, 10:34 PM
  4. fprintf in directory
    By rkooij in forum C Programming
    Replies: 9
    Last Post: 03-09-2006, 03:23 AM
  5. Dikumud
    By maxorator in forum C++ Programming
    Replies: 1
    Last Post: 10-01-2005, 06:39 AM