Scripted Folder View Refresh
Let me start out by describing what I'm trying to do, in case there is a better way. I'm trying to have a scripted set up that alters folder view settings. Currently my script alters several registry values, but the one I'm concerned about is HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\HideFileExt. My script sets this value to 0 (show file extensions for known types) from 1 (hide file extensions for known types). The problem I'm running into is, if this setting is turned on (hide file extensions) and I run this script from a folder, it doesn't automatically reset the setting until I do a refresh. Futhermore, if I manually go back into the view settings, it changes the registry setting back to on. In other words: - Setting is turned on, extensions are hidden - Script is run, setting is modified, but extensions still hidden - user goes into Folder View settings, and the setting still appears on (box is checked) and the registry is modified back to the original setting So my question is, is there a way to initiate this folder view refresh from a script, either cmd or vbs?
November 4th, 2010 11:54am

For this kind of questions, please discuss in our Script Center forum. The Official Scripting Guys Forum Please remember to click Mark as Answer on the post that helps you, and to click Unmark as Answer if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.
Free Windows Admin Tool Kit Click here and download it now
November 8th, 2010 3:36am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics