How to create a folder

This is a discussion on How to create a folder within the C++ Programming forums, part of the General Programming Boards category; I want to write a code who are creating a folder on the desktop in Windows XP, how to do ...

  1. #1
    C++, using Dev C++
    Join Date
    May 2004
    Posts
    7

    How to create a folder

    I want to write a code who are creating a folder on the desktop in Windows XP, how to do that?

  2. #2
    Registered User Codeplug's Avatar
    Join Date
    Mar 2003
    Posts
    4,673
    First, read this thread for code on how to get the directory which represents your desktop.
    Then use CreateDirectory() or _mkdir() to create a new directory within the desktop directory.

    gg

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Making a folder and moving files into it?
    By HLA91 in forum C Programming
    Replies: 1
    Last Post: 01-27-2008, 11:38 AM
  2. API Call to create folder
    By cboard_member in forum Windows Programming
    Replies: 2
    Last Post: 12-01-2005, 11:08 AM
  3. Cannot create MDI Client Win
    By JaWiB in forum Windows Programming
    Replies: 1
    Last Post: 10-31-2005, 09:05 PM
  4. Create folder from variable name
    By nmullane in forum C++ Programming
    Replies: 4
    Last Post: 09-25-2005, 06:41 AM
  5. Files not updating in folder
    By BobS0327 in forum Tech Board
    Replies: 4
    Last Post: 06-06-2005, 05:55 PM

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