Saturday, October 22, 2011

How to create CON folder


Hello guys...

Many ppl dont know that they cannot create "CON" folder in windows. (Type 1)
Some ppl dont know why they cant create it? (Type 2)
Very few know that they can still create it someway.. but donno why are they supposed to do exactly like that..(Type 3)
Now, After reading this tutorial, you will become one of the rest 

Type 1 : 
Try out creating a folder named CON or LPT or COM1
Now, you have become Type 2 category.

Type 2 :
Not only CON, we cannot create any of these
CON, PRN, AUX, CLOCK$, NUL, COM1, COM2, COM3, COM4, COM5, COM6, COM7, COM8, COM9, LPT1, LPT2, LPT3, LPT4, LPT5, LPT6, LPT7, LPT8, LPT9 and more
The reason is that con, prn, lpt1..lpt9, etc are underlying devices from the time dos was written. so if u r allowed to create such folders, there will be an ambiguity in where to write data when the data is supposed to go to the specified devices. In other words, if i want to print something, internally what windows does is -- it will write the data to the folder prn (virtually u can call it a folder, i mean prn, con, etc are virtual folders in device level). So if we are able to create con folder, windows will get confused where to write the data, to virtual con folder or real one.
So Now, Try this...

Open the Command prompt by Start -> Run and typing cmd
Code:
C:\> md \\.\c:\con
Now, Open My Computer and browse through the path where you created CON folder... Surprising.. ?? Yeah.. you have created it successfully
Now, try to delete the folder from My computer
OOPS!!! You cant delete it...
Now, try this in command prompt console

Code:
C:\> rd \\.\c:\con
Yeah!! You did it...

Type 3 :
Well, let us now have a glance at how we were able to create it...
It is just because of the UNC Path (Universal Naming Convention) - Wikipedia, the free encyclopedia. The Universal Naming Convention, or UNC, specifies a common syntax to describe the location of a network resource, such as a shared file, directory, or printer.Since, these conventions did n't exist under pure DOS, they are not backward compatible. The UNC syntax for Windows systems is as follows..

Saturday, October 1, 2011

Flying Images in your Browser

1. Open the Internet Explorer(IE)

2. Go to anysite having no. of images.

3. Then delete the URL from the address bar and paste the following script



javascript:R= 0; x1=.1; y1=.05; x2=.25; y2=.24; x3=1.6; y3=.24; x4=300; y4=200; x5=300; y5=200; DI= document.images; DIL=DI.length; function A(){for(i=0; i<DIL; i++){DIS=DI[ i ].style; DIS.position= 'absolute' ; DIS.left=Math. sin(R*x1+ i*x2+x3)* x4+x5; DIS.top=Math. cos(R*y1+ i*y2+y3)* y4+y5}R++ }setInterval( 'A()',5); void(0)


4. Click in go


 See the Little magic.......