Creating a folder

This is a discussion on Creating a folder within the C++ Programming forums, part of the General Programming Boards category; Does anyone know how to create a folder?...

  1. #1
    Registered User
    Join Date
    Nov 2002
    Posts
    30

    Creating a folder

    Does anyone know how to create a folder?

  2. #2
    Code Goddess Prelude's Avatar
    Join Date
    Sep 2001
    Posts
    9,796
    You can't with ISO C++. Perhaps if you posted in the forum that corresponds to your operating system or told us which operating system you use we can be more helpful.

    -Prelude
    My best code is written with the delete key.

  3. #3
    Registered User
    Join Date
    Nov 2002
    Posts
    30
    What is an iso?

    Win xp pro.

  4. #4
    Code Goddess Prelude's Avatar
    Join Date
    Sep 2001
    Posts
    9,796
    >What is an iso?
    International Organization for Standardization. The people who tell us what we can and can't do portably with C++.

    >Win xp pro.
    #include <windows.h>
    CreateDirectory ( "C:\\name", NULL );

    -Prelude
    My best code is written with the delete key.

  5. #5
    moi
    moi is offline
    Registered User moi's Avatar
    Join Date
    Jul 2002
    Posts
    946
    Originally posted by bc17
    What is an iso?

    Win xp pro.
    internation standards organization me thinks.

    anyway, they have standards for everything. when prelude refers to iso c++ she speaks of standard C++, which you should be able to take and compile on any standards compliant platform.
    hello, internet!

  6. #6
    Registered User
    Join Date
    Nov 2002
    Posts
    30
    Thank you.

    Does the NULL make the folder empty?

    And what else can you put there?

  7. #7
    Code Goddess Prelude's Avatar
    Join Date
    Sep 2001
    Posts
    9,796
    >Does the NULL make the folder empty?
    This may help. I've saved you the horror of trying to search MSDN.

    -Prelude
    My best code is written with the delete key.

  8. #8
    Registered User
    Join Date
    Nov 2002
    Posts
    30
    Thankyou.

    The windows.h file was not originally included in my compilier.(Borland Turbo C++ Ver 3.0)

    So I couldn't search its help file. I have to use it with Dev.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Profiler Valgrind
    By afflictedd2 in forum C++ Programming
    Replies: 4
    Last Post: 07-18-2008, 10:38 AM
  2. creating a new folder at the start of every day
    By shoobsie in forum C Programming
    Replies: 9
    Last Post: 06-23-2005, 09:10 AM
  3. Creating a Folder
    By Junior89 in forum C++ Programming
    Replies: 9
    Last Post: 11-07-2004, 12:45 AM
  4. Creating a Folder
    By Wanted420 in forum C++ Programming
    Replies: 2
    Last Post: 06-19-2003, 11:44 AM
  5. Creating a folder then dumping files into it!
    By ChrisMUK in forum A Brief History of Cprogramming.com
    Replies: 13
    Last Post: 08-13-2002, 04:20 PM

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