film Posted February 23, 2007 Share Posted February 23, 2007 Hello, i was wondering how i can make a batch file to activate my hidden folders to appear then deactivate them so they dissapear ? I have tryed googling but it late and im not reallying finding much. -Thanks Junior Quote Link to comment Share on other sites More sharing options...
Arsenic Posted February 23, 2007 Share Posted February 23, 2007 One way I can think of is just change their hidden status. Use the command 'attrib +h %filename%' and then to remove -h. Quote Link to comment Share on other sites More sharing options...
bigjimbo Posted February 23, 2007 Share Posted February 23, 2007 or two reg files. One to enable, one to disable: UNHIDE: Windows Registry Editor Version 5.00 [HKEY_CURRENT_USERSoftwareMicrosoftWindowsCurrentVersionExplorerAdvanced] "Hidden"=dword:00000001 HIDE: Windows Registry Editor Version 5.00 [HKEY_CURRENT_USERSoftwareMicrosoftWindowsCurrentVersionExplorerAdvanced] "Hidden"=dword:00000000 If you are in explorer, you will have to refresh the explorer window to update that window. Quote Link to comment Share on other sites More sharing options...
film Posted February 24, 2007 Author Share Posted February 24, 2007 or two reg files. One to enable, one to disable:UNHIDE: Windows Registry Editor Version 5.00 [HKEY_CURRENT_USERSoftwareMicrosoftWindowsCurrentVersionExplorerAdvanced] "Hidden"=dword:00000001 HIDE: Windows Registry Editor Version 5.00 [HKEY_CURRENT_USERSoftwareMicrosoftWindowsCurrentVersionExplorerAdvanced] "Hidden"=dword:00000000 If you are in explorer, you will have to refresh the explorer window to update that window. What so make two .reg files say hide.reg and show.reg and click on the one you want to use and refresh it ? Quote Link to comment Share on other sites More sharing options...
Etorathu Posted February 25, 2007 Share Posted February 25, 2007 If you use the reg files Bigjimbo suggested it'll have the effect of turning on and off the 'show hidden files' option. Just use which registry file you want based upon which action you wish to take. To neaten things up I would suggest putting the .reg files in a folder like C:batch and making neat shortcuts to them on your desktop or quick link toolbar. Quote Link to comment Share on other sites More sharing options...
lunex Posted February 26, 2007 Share Posted February 26, 2007 To neaten things up I would suggest putting the .reg files in a folder like C:batch and making neat shortcuts to them on your desktop or quick link toolbar. If you're on a multiuser system I would suggest placing them in your documents folder. That will prevent anyone from modifing them without your noticing, so you don't kill your user account with an evil .reg file. Quote Link to comment Share on other sites More sharing options...
Etorathu Posted February 26, 2007 Share Posted February 26, 2007 Excellent point lunex, I never usually run on multi-user systems so this slipped my mind. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.