What is the meaning of the "con","prn" and "nul" folders and what are they used for..
Pls I need a clear explanation.

These are devices that appeared long ago in CP/M and DOS days. It's that simple. These are devices. Some are real such as the console and printer but nul is just that. Send something to nul and it goes there never to return.

I take it you are very new to the internet. Such devices have prior answers. Did anyone show you how to google or research yet?

They can be udeful when working from the command line. con is the console device. cat lists the contents of a file to the console. If you cat and redirect input from the console then cat will display everything you type. Not a useful example but still an example.

D:\>cat < con

nul is the null device and is useful for suppressing output. This can be useful in cmd files where you want to minimize output.

D:\>echo "hello"

D:\>echo "hello" > nul

commented: Very udeful reply. +9
Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.18 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.