Showing posts with label Windows tips. Show all posts
Showing posts with label Windows tips. Show all posts

Saturday, September 5, 2009

Short cut keys to move a window using the keyboard

Two-thirds of my Dell Inspiron 9200 17 inch wide, beautiful monitor is kaput. There was a manufacturing defect that caused many of
these laptop monitors to fail.

When I first noticed the problem, I checked with Dell, but I was out of the one-year warranty and they would not replace the screen.

The following year, they acknowledged the manufacturing defect and agreed to replace the monitors for free, within three years of
purchase. By the time I found out, my three years were up.

At first I had only lost the right two inches, so I was down to a 15 inch monitor. Still useable.

A couple of months ago, lost the left half of the screen, so now I am down to about a third strip on the right side, with some
vertical lines.

To buy a new monitor is about $300. Might as well buy a netbook.

Plugged an external monitor into the back and made the external monitor my primary display.

Most of the time this is fine, but if I happen to have the external monitor off when I turn on my computer, the laptop screen comes
up as the primary display.

I can right click and select properties in the working area, but the desktop settings open in the area of my screen that does not
work.

To move the window to the visible area, I need to move the window to the right using the keyboard. Here is how.

1. After opening the window, if no other windows are open and nothing else was done, the focus should be on the newly opened window.

2. Alt-spacebar should open the windows navigation drop down menu.

3. The m key should select the move function.

4. The arrow keys should move the window to the visible area, in my case, the right arrow.

Friday, September 4, 2009

The taskbar appears on the wrong monitor after you change the primary monitor in Windows XP

To resolve this problem, follow these steps:

1. Click Start, click Run, type desk.cpl in the Open box, and then click OK.

2. Click the Settings tab, and then click the monitor that you want to use as the primary monitor.

3. Click to select the Use this device as the primary monitor check box if it is not already selected.

Note: The Use this device as the primary monitor check box is unavailable if you click the monitor that is currently set as your
primary monitor.

4. Click the monitor that you want to use as the secondary monitor.

5. Click to clear the Extend my Windows desktop onto this monitor check box, and then click Apply.

6. Click to select the Extend my Windows desktop onto this monitor check box, and then click Apply.

From: http://support.microsoft.com/kb/905776

Short cut keys to move a window using the keyboard

Two-thirds of my Dell Inspiron 9200 17 inch wide, beautiful monitor is kaput. There was a manufacturing defect that caused many of
these laptop monitors to fail.

When I first noticed the problem, I checked with Dell, but I was out of the one-year warranty and they would not replace the screen.

The following year, they acknowledged the manufacturing defect and agreed to replace the monitors for free, within three years of
purchase. By the time I found out, my three years were up.

At first I had only lost the right two inches, so I was down to a 15 inch monitor. Still useable.

A couple of months ago, lost the left half of the screen, so now I am down to about a third strip on the right side, with some
vertical lines.

To buy a new monitor is about $300. Might as well buy a netbook.

Plugged an external monitor into the back and made the external monitor my primary display.

Most of the time this is fine, but if I happen to have the external monitor off when I turn on my computer, the laptop screen comes
up as the primary display.

I can right click and select properties in the working area, but the desktop settings open in the area of my screen that does not
work.

To move the window to the visible area, I need to move the window to the right using the keyboard. Here is how.

1. After opening the window, if no other windows are open and nothing else was done, the focus should be on the newly opened window.

2. Alt-spacebar should open the windows navigation drop down menu.

3. The m key should select the move function.

4. The arrow keys should move the window to the visible area, in my case, the right arrow.

Wednesday, August 12, 2009

Lookup Microsoft updates

To find information about a particular Microsoft update

http://support.microsoft.com/?kbid=XXXXXX

Deleting $NtUninstallKB folders in the Windows directory

In cleaning up space on my laptop, decided to look into whether it was safe to delete the $NTUninstallKB folders in the Windows
directories.

-----------------------------------------------------
Delete Microsoft Uninstall Update Files $NTUnistallKB
-----------------------------------------------------
There are many posts about this. These folders contain information that allows you to uninstall Microsoft updates.

If you are satisfied that an update is working on your computer and that you never want to remove that update, then you can delete
the folder for that update.

There will be a registry entry to list the update in Add/Remove programs. You can then go Add/Remove programs and click Remove. This
should give an error and then remove the entry from the registry.

CAUTION: DO NOT USE Add/Remove programs before you delete the folder or you will remove the actual update.

--------------------------------
Rename With @ to Make Deleteable
--------------------------------
If you are not sure, you can do what I do with all folders I am not sure about. I rename the folder, putting @date at the end. For
example, folder becomes folder@20090812.

My naming convention is that anything with an @ means it is deleteable at anytime.

The date tells me how long ago I made it deleteable. That way, after some time, if I never used the file, it is safe to delete.

--------------
Update Cleaner
--------------
You can buy Update Cleaner for $5 to delete the folder and remove the registry entry if you do not want to do it yourself.
www.pc-shareware.com/update.htm

--------
Ccleaner
--------
Crap Cleaner will also clean up these folders and registry entries. Ccleaner appears to delete them all or none, but not sure since
I did not try to use that feature. Update Cleaner lets you select which ones.

Ccleaner will analyze your computer for things to clean. This was useful. I had less than 1GB of the update files, so I did not
bother removing them.

Ccleaner cleans other things, including your registry.
www.ccleaner.com

----------------------------------------------------
VB Script to Delete Folder and Remove Registry Entry
----------------------------------------------------
There is an interesting entry from this page, with a script for deleting the folder and the entry in the registry for Add/Remove
programs.

www.eggheadcafe.com/forumarchives/windowsupdate/Oct2005/post25175268.asp
10/24/2005 5:21:05 PM Re: Removing UninstallKB's from the Winnt directory
Jim in Cleveland wrote:

Hi,

As long as you doesn't care about not being able to uninstall the

updates anymore, all the $ntuninstall... folders can be deleted.

Below is a VBScript (put it in a .vbs file) that I have written that

will remove the uninstall folder (and the Add/Remove Programs entry

if one exists) for all hotfixes that creates $ntuninstall... folders

under the Windows folder.

Note: This will not uninstall the update itself, only the

uninstall folder and the Add/Remove Programs entry.

'--------------------8<----------------------

Set oShell = CreateObject("WScript.Shell")

Set oFSO = CreateObject("Scripting.FileSystemObject")

sWinDir = oFSO.GetSpecialFolder(0)

Set oFolder = oFSO.GetFolder(sWinDir)

Set oDictionary = CreateObject("Scripting.Dictionary")

For Each oSubFolder In oFolder.SubFolders

sFolderName = LCase(oSubFolder.Name)

sFolderPath = LCase(oSubFolder.Path)

If Left(sFolderName, 13) = "$ntuninstallq" _

Or Left(sFolderName, 14) = "$ntuninstallkb" Then

' get the update name for the registry delete

sUpdateName = Mid(sFolderName, 13, Len(sFolderName) - 13)

' never delete folders/files while enumerating a file/folder collection

' adds them to a dictionary object for later handling instead

oDictionary.Add sUpdateName, sFolderPath

End If

Next

sDeleted = ""

For Each sUpdateName In oDictionary.Keys

sDeleted = sDeleted & vbCrLf & sUpdateName

sFolderPath = oDictionary.Item(sUpdateName)

On Error Resume Next

' remove entry in Add/Remove Programs

oShell.RegDelete "HKLM\SOFTWARE\Microsoft\Windows\" _

& "CurrentVersion\Uninstall\" & sUpdateName & "\"

On Error Goto 0

' delete the uninstall folder

oShell.Run "%Comspec% /C RD /S /Q " _

& Chr(34) & sFolderPath & Chr(34), 0, True

Next

If sDeleted <> "" Then

MsgBox "The uninstall data for the following updates are now removed:" _

& vbCrLf & UCase(sDeleted)

Else

MsgBox "No updates found to remove the uninstall data for."

End If

'--------------------8<----------------------

--

torgeir, Microsoft MVP Scripting, Porsgrunn Norway

Administration scripting examples and an ONLINE version of

the 1328 page Scripting Guide:

http://www.microsoft.com/technet/scriptcenter/default.mspx

Monday, August 10, 2009

|DataDirectory| in connection string

From
http://social.msdn.microsoft.com/Forums/en-US/sqlce/thread/dc31ea59-5718-49b6-9f1f-7039da425296

|DataDirectory| (enclosed in pipe symbols) is a substitution string that indicates the path to the database. It eliminates the need
to hard-code the full path which leads to several problems as the full path to the database could be serialized in different places.
DataDirectory also makes it easy to share a project and also to deploy an application.

For example, instead of having the following connection string:

"Data Source= c:\program files\MyApp\Mydb.sdf"

Using DataDirectory, you can have the following connection string:

"Data Source = |DataDirectory|\Mydb.sdf"

To set the DataDirectory property, call the AppDomain.SetData method. If you do not set the DataDirectory property, the following
default rules will be applied to access the database folder:

. For applications that are put in a folder on the user's computer, the database folder uses the application folder.
. For applications that are running under ClickOnce, the database folder uses the specific data folder that is created.

Friday, June 5, 2009

Last known configuration that worked - anti-virus procedure

If you get a virus, you may be able to go back to your last known configuration that worked.

Turn your computer off and back on.

Press F8 during start up.

Select last known configuration that worked.

This might get you out of some trouble.

Revo uninstaller to get those hard to uninstall programs

When you use System Restore after you have removed some programs, some of those programs return, but then you cannot uninstall them
again.

For these and other hard to uninstall programs, try Revo Uninstaller.
www.revouninstaller.com/

Registry cleaner and PC utility

Two registry cleaners and PC clean up utilities that I like are Ccleaner www.ccleaner.com and Advanced System Care
www.iobit.com/advancedwindowscareper.html

Thursday, April 30, 2009

Free Windows registry cleaner

Here is a free registry cleaner.
http://www.eusing.com/free_registry_cleaner/registry_cleaner.htm

Make sure you go to Start, Accessories, System Tools, System Restore and set a restore point first.

Revo free Windows uninstaller

Here is Revo free Windows uninstaller.
http://www.revouninstaller.com/

If you have problems uninstalling a program try this.

Make a system restore point first.

Tuesday, March 17, 2009

The publisher could not be verified

Microsoft security article
http://support.microsoft.com/?kbid=815141

Forum discussion
http://social.msdn.microsoft.com/Forums/en-US/vbgeneral/thread/15c12a31-5511-4854-af24-dc0820948cbd/

When trying to run a program off another computer on the network, you can get this error message "The publisher could not be verified" and then asks you to confirm. This is a pain if you are using a program regularly.

Ideally I would like to authorize this one program, but I have not yet found out how to do that.

Another solution is to lower the security settings on the Intranet zone and then add the file server with the program to the Intranet zone.

Nothing is in the Intranet zone automatically. Still, I do not like this solution because I only want to authorize the programs under one folder, not every program on everything that I ever add to the Intranet zone.

You can make these changes through Internet Explorer, Tools, Internet Options, Security.

You can also run gpedit.msc and go to User Configuration, Administrative Templates, Windows Components, Attachment Manager

For the time being, I will live with the extra click to run the program rather than lower security on the Intranet zone.