G
Gurpreet Singh
hi everyone,
i want to create a folder on the harddisk using c program.
the folder is infact a nested folder like sec1\subsec22\subsec9
to be created in c:\ drive.
I tried the following statement
mkdir ( c:\\sec1\\subsec22\\subsec9);
but it does not work.
the 'system' command system("md sec1\\subsec22\\subsec9")
is also not working.
Please help whether there is some problem in syntax or some special
setting is to be done prior to using the 'system' command.
Is there any alternative by which i can create the folder.
Note that neither mkdir nor rmdir is working with such a path.
i want to create a folder on the harddisk using c program.
the folder is infact a nested folder like sec1\subsec22\subsec9
to be created in c:\ drive.
I tried the following statement
mkdir ( c:\\sec1\\subsec22\\subsec9);
but it does not work.
the 'system' command system("md sec1\\subsec22\\subsec9")
is also not working.
Please help whether there is some problem in syntax or some special
setting is to be done prior to using the 'system' command.
Is there any alternative by which i can create the folder.
Note that neither mkdir nor rmdir is working with such a path.