Script to open a folder, refresh the view, and close the folder on Windows startup
Posted on 2013-02-05
My Windows 7 Professional SP-1 system has a number of shared drives which appear in My Computer as physical drives, but they are actually TrueCrypt volumes residing in a NAS. When the system is rebooted, these volumes are mounted, and attributes for sharing and permissions are applied automatically. However, the first time My Computer is opened, the sharing icons are not apparent until the view is refreshed. I would like to automate this refresh process on startup. But I don't want to do it by closing and restarting explorer.exe, because doing so removes customized desktop icon caption colors, and also removes several icons from the notification area. So, on startup, I would like to run a batch file which opens, refreshes, and closes the folder "My Computer." Thank you.