Results 1 to 4 of 4

Thread: Make undeletable custom folders in Windows

  1. #1
    Join Date
    Apr 2008
    Posts
    392

    Make undeletable custom folders in Windows

    Have you ever wanted to make a custom folder like My Computer and My documents, that can not be deleted nor can it be renamed other than removing the CLSID and the entries under namespace. You can easily create these type of files and place it in My Computer or Windows Desktop. To do so, go through this :-

    1. Create the following series of keys and values in the Windows registry at

      HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID
    2. Create a new key called: HKEY_CLASSES_ROOT\CLSID\{FD4DF9E0-E3DE-11CE-BFCF-ABCD1DE12345} and set it Default to equal the name of the folder e.g. “My Folder”.

    3. Create a new sub-key under the main key called "InProcServer32" (i.e. [HKEY_CLASSES...ABCD1DE12345}\InProcServer32]) and set (Default) to equal "shell32.dll", also create a new String value called "ThreadingModel" and set it to "Apartment".

    4. Now create a set of sub-keys starting at the main key “Shell\Open My Menu\Command” (i.e.[HKEY_CLASSES...ABCD1DE12345}\Shell\Open My Folder\Command]) and set (Default) to equal the command to execute when clicked, in this case explorer, e.g. “explorer /root,c:\MyFolder”.

    5. Create a set of sub-keys starting at the main key "ShellExPropertySheetHandlers{FD4DF9E0-E3DE-11CE-BFCF-ABCD1DE12345}" (i.e. [HKEY_CLASSES...ABCD1DE12345}ShellExPropertySheetHandlers{FD4DF9E0-E3DE-11CE-BFCF-ABCD1DE12345}])

    6. Create a new sub-key under the main key called “ShellFolder” (i.e. [HKEY_CLASSES...ABCD1DE12345}\ShellFolder]) and create a new Binary value called “Attributes” and set it to “00 00 00 00″.

    7. To place the folder (which is now a system folder) on the desktop add the following key:
      [HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersion
      ExplorerDesktopNameSpace{FD4DF9E0-E3DE-11CE-BFCF-ABCD1DE12345}]

    8. To also place it in My Computer create this key:
      [HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersion
      ExplorerMyComputerNameSpace{FD4DF9E0-E3DE-11CE-BFCF-ABCD1DE12345}]


    Thats it.

  2. #2
    Join Date
    Feb 2009
    Posts
    268

    Re: Make undeletable custom folders in Windows

    Nice Tip !!A Class ID or GUID is a global unique ID which is used to represent unique COM objects.

  3. #3
    Join Date
    Nov 2010
    Posts
    3

    Re: Make undeletable custom folders in Windows

    great tip, though a bit tedious

    is there a way to create undeletable folders/ files on USB Flash drive?

    I've tried 2 methods :

    1) md\AUX\\ ( not the best)
    2) CACL foldername /e /c /d %username%

    Method 2 is great but for the fact that it doesn't allow access, I only intend to keep the folder ( and its contents ) undeletable on the USB flash drive - as this folder is for the portable antivirus and encryption software; both with its links as short cuts in the root directory..

    any ideas?

    ( I have tried /e /c /g %username%:c, which allows deletion - and thats no good!)

    cheers!

    Tom

  4. #4
    Join Date
    May 2008
    Posts
    531

    Re: Make undeletable custom folders in Windows

    As per our query i have searched and come up with the solution regarding the same. Just go through the below given step and see whether this is working with the issue of yours or not.
    • Right Click on My Computer
    • Click on Manage
    • Go to Diskmanger
    • Format the USB drive
    • Create two partition
    • Put a text file on one partition
    • Now Go to diskmanager again
    • And unmount and hide the partition

Similar Threads

  1. How to make custom icons in Windows 7
    By Oye! in forum Customize Desktop
    Replies: 1
    Last Post: 27-03-2012, 11:38 AM
  2. Create An Undeletable Shortcut Using Registry(windows)
    By brynhildur in forum Operating Systems
    Replies: 5
    Last Post: 27-08-2011, 05:33 PM
  3. How to make custom software?
    By Pandya in forum Software Development
    Replies: 5
    Last Post: 11-02-2010, 06:19 PM
  4. How to make folders inaccessible in windows xp?
    By D_chapple in forum Operating Systems
    Replies: 5
    Last Post: 19-11-2009, 02:55 PM
  5. How to make sharing between the folders of Windows XP and Mac OSX
    By Alexander102 in forum Windows Software
    Replies: 1
    Last Post: 07-05-2009, 12:56 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,713,090,403.00613 seconds with 17 queries