I have a large music collection (about 15,000 songs) and I like to watch my music folders thumbnails. Windows has a nice feature that if there's a folder.jpg file inside the folder the folder's thumbnails shows that image.
That is, at least, the default. Sometimes, for some unknown reason, the folder's properties change and the thumbnail doesn't show your beloved picture.
Of course, you can right click the folder, choose properties, then customize, change icon and restore defaults. But what if you have some dozens of folders to fix?
I've noticed that for some of the broken folders has a desktop.ini file in them and deleting the file restore the default behavior. Some of the broken folder didn't have this file though, but copying a desktop.ini file to them and then deleting it also restored them to normal.
Hence, the following script iterate all the subfolders of the folder the script was executed from, copies a desktop.ini file (which you should have on the same folder the script lies in) to them and then deletes it.
Enjoy.
download
me want programming
About
Since I like programming I find myself writing small programs and scripts whenever I lack some feature and google gives no help. I will publish these programs and scripts on this blog.
Thursday, November 17, 2011
Thursday, November 10, 2011
Foobar2000 sidebar gadget
Windows sidebar gadgets are one of the useful things that came with Vista. Never the less I don't see many people around me using them and maybe that is why Microsoft decided to stop supporting the development of those gadgets.
Right before the closing of the gadgets gallery I've uploaded there my first gadget - FoobarAccessory. This gadget is used to control the excellent Foobar2000 media player (play/pause, next/previous, volume) and display the played track info. The gadget is based on the iTunesAccessory gadget, which unsurprisingly does the same with iTunes. To use it you need to install the COM Automation Server component on foobar. If you also want to be able to edit ID3 tags right from the gadget, install the masstagger component too.
Enjoy.
foobarAccessory
Friday, November 4, 2011
Send IP through Gmail
I connect from work to my home computer with VNC. What a bummer is then to try to connect and discover that my home router got a new IP. That's why I wrote a script to send the IP through my Gmail account to my work email. The IP is received through WhatIsMyIP. Using the built in Windows Task Scheduler I get the IP to my work every morning.
Before running the script fill in your gmail username and password, and the address you want the mail to be sent to.
Thursday, November 3, 2011
About
Since I like programming I find myself writing small programs and scripts whenever I lack some feature and google gives no help. I will publish these programs and scripts on this blog.
Subscribe to:
Posts (Atom)