Making a directory?

This is a discussion on Making a directory? within the C++ Programming forums, part of the General Programming Boards category; Hello, I was just wondering, how would I make a direcotry in C or C++ for dos? Like the mkdir ...

  1. #1
    Registered User
    Join Date
    Aug 2001
    Posts
    49

    Question Making a directory?

    Hello,
    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,
    -Kavity
    i'm not stupid, just a little short on brains.
    Kav's game!
    Featuring:
    # - 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
    Posts
    859
    system("mkdir NAME");
    NAME is directory.
    Yoshi

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

    It's in dir.h and the syntax is

    mkdir("mydir");

    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, 10:10 AM
  2. Building a tree from a directory structure
    By geekoftheweek in forum C Programming
    Replies: 2
    Last Post: 11-26-2007, 03:15 AM
  3. About current working directory
    By George2 in forum Linux Programming
    Replies: 3
    Last Post: 05-02-2007, 11:34 PM
  4. fprintf in directory
    By rkooij in forum C Programming
    Replies: 9
    Last Post: 03-09-2006, 04:23 AM
  5. Dikumud
    By maxorator in forum C++ Programming
    Replies: 1
    Last Post: 10-01-2005, 07:39 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21