Archive for September, 2009

Read text file for bulk folders creation

Text file name:

folders.txt : Content

folder_a
folder_b
folder_c

CreateFolders.bat

FOR /F "tokens=1 delims=" %%i IN (folders.txt) DO (

md %%1

)
pause

CreateFolders.bat will read file folders.txt and create folder_a,folder_b and folder_c for you.

VN:F [1.9.18_1163]
Rating: 0.0/5 (0 votes cast)
VN:F [1.9.18_1163]
Rating: 0 (from 0 votes)
Total views: 2,363 views

,

No Comments

Outlook: Hong Kong Holidays 2010

Hong Kong Holidays 2009 for Outlook 2007

Reference:
http://www.gov.hk/en/about/abouthk/holiday/2010.htm

Hong Kong Holidays 2010 for Outlook:
HK2010 Holidays Outlook

Installation:
1. Download Holidays file
2. Double-click the holidays file
3. Click OK
4. Click OK
5. Open Outlook Calendar, Holidays information imported.

outlook01

outlook02

outlook03

VN:F [1.9.18_1163]
Rating: 0.0/5 (0 votes cast)
VN:F [1.9.18_1163]
Rating: 0 (from 0 votes)
Total views: 10,993 views

, ,

2 Comments

Outlook: Hong Kong Holidays 2009

Hong Kong Holidays 2009 for Outlook 2007

Reference:
http://www.gov.hk/en/about/abouthk/holiday/2009.htm

Hong Kong Holidays 2009 for Outlook:
HK2009_Holidays

VN:F [1.9.18_1163]
Rating: 0.0/5 (0 votes cast)
VN:F [1.9.18_1163]
Rating: 0 (from 0 votes)
Total views: 3,582 views

, ,

No Comments

Deploy Trusted Root CA Certificate (command line)

In Windows XP, local computer certificates are stored in registry

HKLM\SOFTWARE\Microsoft\SystemCertificates\

Trusted Root CA certificates
HKLM\SOFTWARE\Microsoft\SystemCertificates\Root\

Intermediate CA certificates
HKLM\SOFTWARE\Microsoft\SystemCertificates\CA\

Before install trusted Root CA certificate

Root CA cert registry

Root CA cert registry

After install Root CA certificate, one more entry created (D0836D774C16xxxxxx..)

Root CA cert registry 02

Root CA cert registry 02

For the Root CA certificate deployment, you can export this registry and import this registry to target deployment machine by using the following command with local administrator right.

Command line deployment example:
regedit /s root_cert.reg

VN:F [1.9.18_1163]
Rating: 5.0/5 (1 vote cast)
VN:F [1.9.18_1163]
Rating: 0 (from 0 votes)
Total views: 15,881 views

, ,

1 Comment

Modify Outlook 2007 View by using vbscript (vbs)

Currently I am checking how to modify Outlook 2007 default view by using vbs.

Following is my working vbs. You can download and test it.

MSDN reference:
http://msdn.microsoft.com/en-us/library/bb177050.aspx

VBS code example

Const ForReading = 1
Const olFolderInbox = 6
Const olColorRed = 10
Set olApp = CreateObject("Outlook.Application")
Set objName = olApp.GetNameSpace("MAPI")

Set objTableView = objName.GetDefaultFolder(olFolderInbox).CurrentView

            objTableView.ColumnFont.Size = 10
            objTableView.ColumnFont.Name = "Arial"

            objTableView.RowFont.Size = 10
            objTableView.RowFont.Name = "Arial"

            objTableView.AutoPreviewFont.Name = "Arial"
            objTableView.AutoPreviewFont.Size = 10

            ' Save the table view.
            objTableView.Save
            objTableView.Apply

        Set objView = objName.GetDefaultFolder(olFolderInbox).CurrentView

        For Each objRule In objView.AutoFormatRules

           If Not objRule.Name = "Unread group headers" Then

                'MsgBox objRule.Name
		'MsgBox objRule.Font.Color

                objRule.Font.Color = olColorRed

           End If
           objRule.Font.Size = 10
           objRule.Font.Name = "Arial"

        Next

        objView.Save
        objView.Apply

wscript.echo "Completed"

Outlook 2007 default view

Outlook 2007 default view

Outlook 2007 default view

After running vbs, it makes the following change
1. Font changed from Segoe to Arial
2. Font size changed to 10pt
3. Unread mail changed from black to red

After running vbs, modified Outlook view

After running vbs, modified Outlook view

VN:F [1.9.18_1163]
Rating: 0.0/5 (0 votes cast)
VN:F [1.9.18_1163]
Rating: 0 (from 0 votes)
Total views: 22,731 views

, , , ,

1 Comment

Fedora Live CD login as root

Fedora Live CD Default login user is “liveuser”, when I use Live CD for system recovery or maintenance purpose, I will face access denied problem while accessing to different folders.

Following is a way for logging as root by using Fedora Live CD. (I tested this approach on Fedora Live CD 10)

1. Ctrl+Alt+F2
2. Login as root without password
3. cd /etc/pam.d/
4. vi gdm
5. Comment the following line
#auth       required    pam_succeed_if.so user != root quiet

6. save the change
7. Back to the graphical login screen.
8. You can use root as login user now.

Enjoy it !!

VN:F [1.9.18_1163]
Rating: 3.7/5 (10 votes cast)
VN:F [1.9.18_1163]
Rating: +1 (from 1 vote)
Total views: 40,910 views

, , ,

1 Comment