Tip: Changing default folder where outlook saves attachments

As I am using a Gettings Things Done system, I wanted to change the location of the default folder where outlook saves it attachments. So that whenever I save an attachment I did not have to browse to that folder but it was the folder outlook presented in it’s “ save As” dialog.

You can do this by editing the registry

  • First Close Outlook
  • open the Registry Editor (regedit.exe)
  • Navigate to the following key
    For Outlook 2003:
    HKEY_CURRENT USER\Software\Microsoft\Office\11.0\Outlook\Options

    For outlook 2007:
    HKEY_CURRENT USER\Software\Microsoft\Office\12.0\Outlook\Options

    For outlook 2010:
    HKEY_CURRENT USER\Software\Microsoft\Office\14.0\Outlook\Options

  • Create a “String Value” with the name DefaultPath
  • Double Click the DefaultPath value and insert the folder you want to be the default folder (Including the drive letter)

DefaultPath Registry Key

recreating folder structure

I needed to recreate a folder structure from one computer to another.
To be ahead of some comments I foresee, one computer did not have powershell or any internet connection (to download powershell), and I was not allowed to install anything.

To solve the problem I used “old school” DOS commands.

  • Open a command prompt
  • navigate to the correct folder
  • execute the command: “dir /s /b /ad > createfolders.bat”
  • edit the just created createfolders.bat file with an advanced text editor which supports macro’s (like download notepad++ )
  • Make a macro that put’s the command “md” (make directory) on every single line, and removes the part in front of the line you don’t need (like d:\ or so)
  • Copy and execute this batch file onto your computer on which you want to recreate the folder structure

Simpel.. ain’t it.

changing your Terminal Server Session

Do you ever have the problem that you take over a Windows Server with a remote desktop, you then later close the session leaving all your programs open to run for example overnight. The next time you start your remote desktop session you will enter a new session besides the one you already have running. If so, with the tscon command you can switch sessions.

First identify the session id of the session you want to control, you can do this by opening Terminal Services Manager. When you have your ID (i.e. 1) start a command prompt and enter: tscon {id} /v (i.e: tscon 1 /v) inside your current session.
You’re current session will be stopped and you will be redirected to session nr. 1

Windows 7 tips

Some nice windows 7 tips I found.

Command Prompt output to Clipboard
You can directly paste the output of a command prompt command into the clipboard by adding clip to any command. For example: dir | clip

image

You can then paste it into notepad

Changing the Power Button Command
You can change the command behind the power button. To do this right click the start button, choose properties. You can now choose the action you want the power button to do (like  lock, logg off, sleep, etc)

image

How good is your laptop battery
To find out how good your laptop battery still is, execute the command:
”powercfg –energy”

After 60 seconds you will receive a html report named “energy-report.html” in the same folder where you executed the command. Open this html file and scroll almost to the end, you will then find a section called Battery: Battery Information. Compare the Design Capacity with the Last Full Charge
note: you need to have admin privileges

image

Sharepoint hidden webparts maintenance page

On our sharepoint intranet site we had a problem with a webpart. This webpart displayed some top sites. Whenever we wanted to remove it we received a javascript error.

Someone suggested us to add ?contents=1 behind the url (resulting in something like: http://<your domain here>/Pages/Default.aspx ?contents=1)

you will now see the hidden webparts page, and can delete the irritating Web Part

Use with caution!