Wednesday 25 October 2017

Turn off change file extension warning in Windows 7


Is there a way to turn off the file extension rename dialog in Windows 7?


The one that prompts you



Rename: If you change a filename extension, the file might become unusable. Are you sure you want to change it?




Answer



It's possible with an AutoHotkey script:


While, 1
{
WinWait, Rename ahk_class #32770
WinActivate,
ControlClick, Button1
}

Install AutoHotkey, save the code above in a file with the .ahk extension and launch the script. It will wait for the Rename window to appear. When it does, it automatically "clicks" on the Yes button (identified here with "Button1").


If you don't want to install AutoHotkey, here is a compiled version of the same script. Run the executable and watch it do its magic :-) .


Note it does not really answer the question, as the question still appears. But it's automated so you'll not be bothered by it anymore.


No comments:

Post a Comment

Where does Skype save my contact's avatars in Linux?

I'm using Skype on Linux. Where can I find images cached by skype of my contact's avatars? Answer I wanted to get those Skype avat...