RSS Subscribe

Saturday, May 9, 2009

Make an undeleteable folder

Open command prompt.
change to the directory in which u want to make folder.
type
mkdir .\con\\
Or
Md .\con\\

You can choose folder name from the name given below
CON
LPT1
LPT2
LPT3
LPT4
LPT5
LPT6
LPT7
LPT8
LPT9
AUX
----------------------
Logic behind this is : IN Windows above names are researved words and you cann't create folder or file with above name. Once you will create the folder nobody will be able to delete it in normal way. I have tested it with XP 2000 and 2003. Windows 98 is currently not available to me for testing. If you can test it on Windows 98 then please do it and let me know the result. I expect it to work.

verify by typing "dir \\.\e:\con"
After u create such folder,it cannot be deleted the say same way u delete other files from the windows.To delete the file or folder type "rmdir \\.\c:\con"

These are special keywords used in DOS.All the reserved words & their keyword descriptions
CON Keyboard and display
PRN System list device, usually a parallel port
AUX Auxiliary device, usually a serial port
CLOCK$ System real-time clock
NUL Bit-bucket device
A:-Z: Drive letters
COM1 First serial communications port
COM2 Second serial communications port
COM3 Third serial communications port
COM4 Fourth serial communications port
LPT1 First parallel printer
port
LPT2 Second parallel printer port
LPT3 Third parallel printer port

Playing with these file names and creating garbage folders like you all are trying to do may cause your system to crash.Now, its upto u to experiment.Generally,there may be no problem when u create such folder but after some time,ur system might........ Don't blame me if some goes wrong..........

0 comments:

Post a Comment