Social Icons

Pages

Monday, 21 October 2013

How to create a non deletable folder in windows


 In windows PC we can make a folder that cannot be deleted manually by a user. Here are the steps to create a non deletable folder:
  • Open Command Prompt (Windows Key+R and type cmd and hit enter)
  • Type  cd\  (it brings command out to C drive) 
  • Type md\\.\<YourDrivehere>:\con  (Replace YourDriveHere with your desired drive and you can add further path too.

 
  • Now, ask your friends to delete it, and they will be amazed as folder cannot be deleted. Actually, this is due to the bug that windows cannot create a folder named con, So, it can`t delete a folder which it don`t think is created. 
 However, if you ever want to delete this folder, Do remember that it won`t get deleted by normal deletion but rather by this command:
            
 rd\\.\ <YourDrivehere> :\con (Replace YourDriveHere with your desired drive and you can add further path too.)

No comments:

Post a Comment