Computing.Net > Forums > Programming > make folder with C language

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

make folder with C language

Reply to Message Icon

Name: Wiliam
Date: January 9, 2002 at 10:02:45 Pacific
Comment:

hello;
who can tell me how can i make a folder,
using the c language.
it's possible????
plz i need your help.
thanks



Sponsored Link
Ads by Google

Response Number 1
Name: j
Date: January 10, 2002 at 00:16:59 Pacific
Reply:

easy way is use teh
void system(char *command) function

just enter the command in quotes

system("mkdir test");

make it in pwd.


0

Response Number 2
Name: Wiliam
Date: January 10, 2002 at 07:03:31 Pacific
Reply:

hello;
I tried it but no folder was found, here's the code:
#include

main()
{
char *command = "mkdir test";
system(command);

return 0;
}
does any library need it exept the stdio.h????
note: I'm using Metrowerks CodeWarrior.
thanks


0

Response Number 3
Name: Giuseppe
Date: January 10, 2002 at 10:34:13 Pacific
Reply:

To use the void system(char *command) you have to include stdlib.h.


0

Response Number 4
Name: Wiliam
Date: January 10, 2002 at 11:14:44 Pacific
Reply:

I included the stdlib.h but i have no result.
I'm using win 2000 and my compiler is CodeWarrior.
plz help me.


0

Response Number 5
Name: hashpuppy
Date: January 17, 2002 at 05:56:00 Pacific
Reply:

hi... i use borland try process.h


0

Related Posts

See More



Sponsored Link
Ads by Google
Reply to Message Icon






Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: make folder with C language

make folder with C www.computing.net/answers/programming/make-folder-with-c/500.html

Help in C language www.computing.net/answers/programming/help-in-c-language/17344.html

help with C++ language www.computing.net/answers/programming/help-with-c-language/17856.html