answersLogoWhite

0


Best Answer

#include<stdio.h>

#include<conio.h>

#include<windows.h>

int main()

{

CreateDirectory("C:\\Users\\Tareq\\Desktop\\ComputerScience",NULL); //create folder "ComputerScience" in desktop

CreateDirectory("C:\\Users\\Tareq\\Desktop\\ComputerScience\\SF",NULL);//create another folder "SF" inside ComputerScience folder

printf("file created");

getch();

}

User Avatar

Wiki User

11y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How can you create sub folder in c?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What is a sub folder and a sub level folder?

A sub folder is when you put a folder in another folder and a sub level folder is when you put more than one sub folder in another sub folder.....


How do you create sub folder on computer?

There are a number of ways. Probably the simplest is to open a folder window (My Computer or Windows Explorer) for the folder in which you want to create a sub-folder. Right click in a blank area of the file list pane, and move the mouse to New. Select Folder in the sub-menu. A sub-folder called New Folder, with the name highlighted (selected), will be created. Type the name you want for your sub-folder, then press Enter. This will replace New Folder as the name of the sub-folder.


Difference between root directory and subdirectory?

C:\ is the root directory C:\folder\ is sub directory


How many sub-sub folders can be created in a folder. you mean folder inside another folder which in turn is inside another folder and so on?

You can make about 5 sub-sub folders in another folder.


Differentiate between a sub-folder and a file folder?

The sub folder is a folder inside the file folder. For example... The "Sample Pictures" folder is a sub folder to the "My Pictures" folder. It's pretty straight forward and simple...so hope that helps?


A folder within a folder is called?

sub folder.


How do you create folder with c plus plus?

Use function mkdir.


Why cant we create a con folder in PC?

we can create a con folder in pc by using ms-dos create a con folder in C-drive by typing mkdir&lt;space&gt;\con\&lt;press enter&gt;... now u can see the folder con created in C-DRIVE OR ANY DRIVEs.. we can remove using rmdir&lt;space&gt;\con\&lt;press enter&gt;.............


How do you create directory in c drive?

Go to the C: drive and right click. go to new and hit folder.


Can a folder contain another folder?

Yes. The one inside is called a sub-folder.


How do you create a folder on MS-DOS using the MD command?

At the dos prompt (c:>), type md then a space, then the name of the folder you want to create. Example md foldername


How do you create a directoryfolder called Kenya in Drive C?

Are you asking how do you "rename" the C drive? or how to place a folder in C drive named Kenya?