Stuck in Windows (have only tested it on an XP Virtual machine) and need to do development work, but constantly have to associate files (.php, .pl, .htaccess, .css, …) as Windows doesn’t support them by default?
Write a script on your webserver to get a list of all the extensions being used and write a bash script in Windows to associate them all with whichever program you need it associated with (Post a comment if you need help).
How do you associate files via command line?
Type: assoc <.extension>=<filetype>
Let’s say you need to add new types or want to change the program being used to open txtfiles or phpfiles or whatever filetype you want to reassign to a different program.
In Windows Explorer go to Tools -> Folder Options -> File Types
Here you can reassociate the txtfile or any other file type with whatever program you want and add other file types.
Hope this saves a couple of Windows victims a bit of time ;-)

