Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.

Windows 7: Automatically hiding Microsoft Word backup files (.wbk)

12 May 2013   #1

Windows 7 Professional x64
Automatically hiding Microsoft Word backup files (.wbk)

The last thread about this was a couple years ago. I tried the solution I found here initially but it was too cumbersome to do every time just to keep the wbk books out of the way.

All I wanted was to keep My Documents the way I wanted, it being called my documents and all. I guess the My Documents folder is the equivalent of the ghetto because anything and everything gets dumped by various programs into there. I ended up voluntarily vacating the premise and created a separate My Document folder and use that instead.

But I digress.

I recently took the trouble to learn a little bit of scripting. I made the following code in AutoHotKey:

#SingleInstance force
IfWinExist , ahk_class OpusApp
FileSetAttrib, +H, C:\Users\YourUserNameGoeshere\Documents\*.wbk , , 1
WinWaitActive , ahk_class OpusApp
WinWaitClose , ahk_class OpusApp
Sleep 4000
FileSetAttrib, +H, C:\Users\Usernamegoeshere\Documents\*.wbk , , 1
Sleep 10000
All this scripting stuff seemed like greek to me but I took some time to learn a little bit of it and it has come quite handy for things like this. You can point the directory to C:\*.wbk if you want it to search your whole drive. The number values are milliseconds so 1000=1 second. I just put it in there to be safe so it doesn't go in a crazy loop. I'm not sure that it would if it gets taken out but it works.

So every time you open a word doc, it will run the hide attribute command and once more when you exit. I'm not sure if any other Microsoft programs share the class OpusApp. The class pertains to office 2013 but I think it will be the same regardless.

I'd post the compiled .exe but I think it would be best for whoever needs this to just download ahk from the site and compile it themselves. I could be a shady character and put some unscrupulous code in the .exe. You just paste this into the SciTe4 writer, save the file somewhere, right click, and click compile and it will shoot out an .exe.

Autohotkey is opensource so it is free for all. Here is another script I made that may be useful.

This has always bugged the hell out of me but I really hated the fact that when you are in Windows Explorer and using the navigation pane, you couldn't shift focus from the navigation pane to the folder content via keyboard. You would have to use your mouse. What am I, a barbarian?

I went searching for the answer and my googling brought up nothing but that is just the way it is, not a bug, it's a feature.

So, here is what I wrote.

;Press Tab in Windows Explorer to Focus on first object.
#IfWinActive ahk_class CabinetWClass ; Windows Explorer
        ControlFocus, DirectUIHWND3, A
        SendInput, {Space}
Now, pressing Tab will shoot you on over to the first item from the navigation pane.

And just cause,

Here, pressing win key + spacebar will lauch Chrome and bring it into focus.

;Launches Chrome
IfWinNotExist, ahk_class Chrome_WidgetWin_1
    run, chrome.exe
    WinWait ahk_class Chrome_WidgetWin_1
IfWinExist, ahk_class Chrome_WidgetWin_1
    WinActivate, ahk_class Chrome_WidgetWin_1
So, I hope this helps any lurkers who stumbled here via search engine looking for a solution.

My System SpecsSystem Spec


 Automatically hiding Microsoft Word backup files (.wbk)

Thread Tools

Similar help and support threads for2: Automatically hiding Microsoft Word backup files (.wbk)
Thread Forum
Can't Open Microsoft Word Files! Microsoft Office
Solved On Microsoft Word, how do you have the dates align automatically Microsoft Office
Solved Problems deleting files in Microsoft Word 2010 Microsoft Office
Microsoft onenote backup files Microsoft Office
photo viewer automatically "hiding" photos after rotation Music, Pictures & Video
.exe program files opening with Microsoft word by default General Discussion
C:\ Hiding files? General Discussion

Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 04:53 PM.
Twitter Facebook Google+

Windows 7 Forums

Seven Forums Android App Seven Forums IOS App

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33