Monday, October 6, 2014

Automatically strip invalid characters from Windows filenames

I often paste titles of PDFs into their filenames so I can easily search for them. They often have invalid characters like newlines or :, and Windows pops up a stupid error and then reverts the filename to its original:


enter image description here


I don't care about those characters and would be perfectly happy if it replaced them with - or removed them entirely. Is there some way I can do this? Any system setting for disabling this prompt?


The best I can think of is an AutoHotkey script with its own keyboard shortcut for "paste clipboard but remove invalid characters first", which is what I'm currently using.

No comments:

Post a Comment

linux - How to SSH to ec2 instance in VPC private subnet via NAT server

I have created a VPC in aws with a public subnet and a private subnet. The private subnet does not have direct access to external network. S...