2.write the following into notepad :"bush hid the facts" save the file and see the magic.
3.open ms word and type "=rand(200,99)" and press enter and see the magic.
Do you know why this happens and any tips??
Lets first solve the first query.......
Special names such as (CON) can be used as folder names! Here is how:
1- Goto DOS
2- Type MD \\.\C:\CON. The folder will be created.
You can check it in Windows Explorer also, but you can’t delete it directly, in order to delete it:
1- Goto DOS
2- Type RD \\.\C:\CON
In short, use the network path syntax instead of absolute path syntax.
If any one told you it is impossible to make folder named (CON) Now you can say with confidence that it is not true…
So why this happens and what is the main reason is as follows:-
1) "Con" is already a key word in MS DOS. It is not only con that you cant create, try creating folders with the strings PRN, LPT1, AUX, NUL, COM1, etc. All these strings have a critical usage hence they cant afford to be used as filenames/foldernames.
And HOW you can create it is basically because of "The Universal Naming Convention, or UNC". This provides a common syntax describing the location of a resource on a particular network. But this is not compatible with DOS. So the UNC for windows would be something like
\\RemoteHost\sharedfolder\resource
But \\remotehost\drive:\con doesn’t mean anything, because without having a process(explorer.exe) on the remote host, there is no current ‘console’. The “.” in \\.\c:\con suggest the local server. Now, you are pointing to your own computer, and you have all the privileges on every folder of your computer, hence you can create it ONLY in Dos Mode (because of the backward compatibility)
2) Actually it is a bug in XP, its not that "Bush hid the facts" works, try a string with the 4-3-3-5 format. eg. "abhi can say awesm". Why this happens is you save in 8bit ASCII and read in 16bit Unicode. Actually there is a long explanation to this bug, which relates to ASCII and unicode determination. What happens in the notepad is whenever a txt is saved, the notepad has a function called isUnicode or something, i cant remember that (It relates to hex codes and stuff, if anyone can explain that, cool!). That function uses some algorithm to determine what format it is. So thats where the bug lies. If you have eastern languages installed, you would get chinese instead of the boxes.
3)rand(200,99) means, type the default statement "The quick brown fox jumps over the lazy dog" 200 paragraphs with 99 sentences in it. And for another info - ""The quick brown fox jumps over the lazy dog" has all the alphabets in the English language. Try =lorem(200,10). :)
Enjoy......... ;)
No comments:
Post a Comment