Changing a file’s extension: disabling the “If you change a file name extension, the file may become unusable…” warning

Are you sure you want to change it?

Yes, I’m quite sure I want to change it and I don’t want to be prompted.

This posting suggests that to disable this annoying dialog, you can edit the registry:

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System]

And set the value of ConsentPromptBehaviorAdmin to zero (0) and Reboot.

However, it also mentions that this doesn’t work, and the best found alternative is to use a 3rd party file browser (directory commander or something similar, or use RtvReco for Windows to automatically close it as soon as it appears.

rename_prompt

registry_window

Related Posts:

This entry was posted in Tech Tips and tagged . Bookmark the permalink.

One Response to Changing a file’s extension: disabling the “If you change a file name extension, the file may become unusable…” warning

  1. alexi teague says:

    Just for clarification: The registry key “ConsentPromptBehaviorAdmin” only affects the UAC warning dialogs when you try to perform a task that requires administrator credentials. Setting this key to “0” will disable the UAC warning messages, while leaving UAC still running. It has absolutely no effect on the extension change dialog which is part of explorer.exe.

    You can see this for yourself by doing the following: (This assumes that you have admin rights and UAC is not disabled)

    1. Go to Start -> Run -> regedit and press “OK” UAC will stop and ask you for permission to continue.

    2. Navigate to the registry key and change it to “0”. Exit regedit.

    3. Right-click on the desktop and go to New -> Text Document

    4. Try to rename “New Document.txt” to “New Document.bat” Vista STILL stops and asks you for confirmation. >:(

    5. Go to Start -> Run -> regedit and press “OK” Regedit will open immediately without UAC stopping and asking for confirmation.

Leave a Reply

Your email address will not be published. Required fields are marked *