Making a directory (possible?)

This is a discussion on Making a directory (possible?) within the C++ Programming forums, part of the General Programming Boards category; Can you make a directory. Say I want a place where I can save everything. Like put it in C:// ...

  1. #1
    I am he who is the man! Stan100's Avatar
    Join Date
    Sep 2002
    Posts
    361

    Making a directory (possible?)

    Can you make a directory. Say I want a place where I can save everything. Like put it in C:// or something, but altogether? Is it possible?
    Stan The Man. Beatles fan

    When I was a child,
    I spoke as a child,
    I thought as a child,
    I reasoned as a child.
    When I became a man,
    I put childish ways behind me"
    (the holy bible, Paul, in his first letter to the Cor. 13:11)

  2. #2
    &TH of undefined behavior Fordy's Avatar
    Join Date
    Aug 2001
    Posts
    5,789
    It's OS dependant
    For windows - CreateDirectory()

  3. #3
    Registered User kiss_psycho's Avatar
    Join Date
    Feb 2003
    Posts
    49
    for making a directory under DOS in C++,

    Code:
    Interrupt based...
     
       use intdos() -- works under interrupt no. 0x21
    
    input : ah=0x39
    ds;dx=segment:offset address of dir name
    
    Shell execution based:
    
        use system();
    
    Library based:
        
         use mkdir(); under dir.h
    Definition of Programmer : A red-eyed mumbling mammal capable of conversing with inanimate objects.

    Happy Hunting...
    The Root

  4. #4
    I am he who is the man! Stan100's Avatar
    Join Date
    Sep 2002
    Posts
    361

    Thx

    Thx fordy. Is there any info on those functions, or should I just goto MSDN, or google?
    Stan The Man. Beatles fan

    When I was a child,
    I spoke as a child,
    I thought as a child,
    I reasoned as a child.
    When I became a man,
    I put childish ways behind me"
    (the holy bible, Paul, in his first letter to the Cor. 13:11)

  5. #5
    Used Registerer jdinger's Avatar
    Join Date
    Feb 2002
    Posts
    1,065
    MSDN is the best place to go for info on WinAPI functions. Try here.

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

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