1. Not finding help here? Sign up for a free 30min tutor trial with Chegg Tutors
    Dismiss Notice
Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Is there a simple way to create a folder using C ?

  1. May 13, 2004 #1
    Hi! :frown:
    I have 2 programming questions here. Hope you could help me with it.

    Q1) Is there a way to pre-specify the size and location of command prompt window that runs along with my application written using Visual C++ ? Be it using C or some batch command?

    Q2) Is there a simple way to create a folder using C ?


    Thank you,
    Yingtian.
     
  2. jcsd
  3. May 13, 2004 #2

    chroot

    User Avatar
    Staff Emeritus
    Science Advisor
    Gold Member

    1) not that I'm aware of.

    2) #include <sys/types.h>
    #include <sys/stat.h>

    int mkdir (const char *path, mode_t mode);

    - Warren
     
  4. May 13, 2004 #3
    Thanks for your reply!

    For Q2), the mkdir u suggested seems to work only for unix? I forgot to say that I am using windows xp...so...is there an equivalent simple syntax for it?

    Regards,
    Yingtian.
     
  5. May 13, 2004 #4

    chroot

    User Avatar
    Staff Emeritus
    Science Advisor
    Gold Member

    I'm pretty sure mkdir exists on windows as well.

    - Warren
     
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook

Have something to add?



Similar Discussions: Is there a simple way to create a folder using C ?
  1. Opengl using C++ (Replies: 3)

  2. Can't create folder (Replies: 3)

Loading...