Wednesday, August 25, 2010

今日阅读心得

- 经验不是指发生在你身上的事,而是你如何处理发生在你身上的事情。你如何善用你的经历?不要浪费你的痛苦或喜乐,使用它来帮助别人。
- 不尝试,你永远不知道自己擅长什么。若不成功,就当作是一个实验,而非失败。

Wednesday, June 23, 2010

今日阅读心得

- 许多不同的职业都有可能是上天对你人生的旨意:但祂最关心的是无论你做什么,你以向基督的样式来做。
- 不要毫不思索就自然的去顺应周围的文化,反要定睛于神,你就会里外焕然一新。
- 灵命不会自动成长,需要刻意致力去达到。
- 必须想要,决心,努力,及坚持不断的成长。
- 要改变你的人生,首先要改变思想的方式。
- 所思所想要谨慎,因为你的生命是由你的思想塑造的。
- 要改变方向有一个更好,更容易的方法:更换你的自动导航器-即你的思考模式。
- 改变总是由心里开始,你的思想方式决定你的感觉;而你的感觉则影响你的行为。
- 自私的想法是罪恶的根源。
- 开始成熟的思想就是把焦点从自己转移到别人身上。

Wednesday, January 20, 2010

Simple Script to Schedule Backup

I am recently asked to improve/automate a manual backup job. What they did previously was to copy a complete folder from c:\xxx to f:\xxx manually everyday at 4:30pm, and what is more annoying was that the user was prompted every time if he/she was to overwrite the existing file in destination folder.

Here i managed to create a batch file which i believe will help anyone who needs to do this manually everyday.

Open Notepad, copy and paste the following lines to your notepad and save it as copy.bat
set copycmd=/y
XCOPY C:\temp\* D:\temp\ /i /s

In line 1, copycmd=/y tells the system not to prompt to ask overwrite whatever existed in destination folder. If you changed it to copycmd=/-y, then the system will prompt if you want to overwrite it.

In line 2, XCOPY allows you to copy files and/or directory trees to another folder. XCOPY is similar to the COPY command except that it has additional switches to specify both the source and destination in detail; where C:\temp\* is your source, D:\temp\ is your destination, /i means if in doubt always assume the destination is a folder e.g. when the destination does not exist, and /s means copy folders and subfolders.

Then last step, you open the Scheduled Tasks (Start->Accessories->System Tools->Scheduled Tasks in WinXP), double-click Add Scheduled Tasks, browse to your copy.bat, and finally define when you want the system to perform this task.

Hopefully this can help. Cheers...

Additional link: WindowsXP Command guide

Tuesday, December 8, 2009

Cannot create file: xxx.xls. Right-click the folder you want to create the file in, and then click properties on the shortcut menu to check...

One of my user received this error when trying to open an excel attachment in Outlook 2007 sent from Supervisor "Cannot create file: xxx.xls. Right-click the folder you want to create the file in, and then click properties on the shortcut menu to check your permission for the folder."

To resolve this problem, it is suggested that you need to delete all the temporary files in the temporary internet file folder.

Here's the info extract from Microsoft on how to locate the temporary internet file folder in your computer:

When Outlook 2003 or Outlook 2007 first tries to use a temporary file, it examines the registry to determine whether the following value exists, depending on your version of Outlook.

Outlook 2003
HKEY_CURRENT_USER\Software\Microsoft\Office\11.0\Outlook\Security

Value Name: OutlookSecureTempFolder
Data Type: REG_SZ
Outlook 2007
HKEY_CURRENT_USER\Software\Microsoft\Office\12.0\Outlook\Security

Value Name: OutlookSecureTempFolder
Data Type: REG_SZ
If the value exists, and if the value contains a valid path, Outlook 2003 or Outlook 2007 uses that location for its temporary files.

If the registry value does not exist, or if it points to an invalid location, Outlook 2003 or Outlook 2007 creates a new subdirectory under the Temporary Internet Files directory and puts the temporary file in the new subdirectory. The name of the new subdirectory is unknown, is randomly generated, and takes on the following form, depending on your version of Outlook.

Outlook 2003
C:\Documents and Settings\username\Local Settings\Temporary Internet Files\OLKxxx
In this example, username is the user name that is used by the person who is currently logged on to the computer, and xxx is a randomly generated sequence of letters and numbers.

Outlook 2007
C:\Documents and Settings\username\Local Settings\Temporary Internet Files\xxxxxxxx

Note In Windows Vista, the temporary file resides in the following location:
C:\Users\username\AppData\Local\Microsoft\Windows\Temporary Internet Files\Content.Outlook\xxxxxxxx

Thursday, December 3, 2009

Cannot start Microsoft Office Outlook. Cannot open the Outlook window

I was told by a user today that he experienced an error in Outlook "Cannot start Microsoft Office Outlook. Cannot open the Outlook window." I checked with what he'd done before this problem, it's because that he didn't shut down the system properly, i.e. forced shutdown with power button while Outlook was still running.

I googled and found an article (available at here) discussing the same issue. The problem was resolved after running the command in Start -> run -> enter "outlook /resetnavpane"

Actually there are other commands/switches available in Outlook to address different issues, you may access to the following link to see what each one of them do.
http://www.outlook-tips.net/howto/commandlines.htm

Cheers...

Friday, November 13, 2009

Netmask

192.168.1.1/32 means match 192.168.1.1
192.168.1.1/24 means match 192.168.1.anything
192.168.1.1/16 means match 192.168.anything.anything

Friday, October 2, 2009

What could possibly cause your PC to beep

This might help u out:

1. 1 short beep-System is ok
2. 2 short beeps- BIOS error
3. 1 long and 8 short beeps- Display Card error
4. 1 long beep after few seconds 2 short beeps-FDC error
5. 1 long beep after few seconds 1 short beeps-FDC is Ok
6. 1 long beep and 2 short beeps-Display Card Error
7. Continuous long beeps-RAM error

Note:They might differ according to systems
extracted from: http://www.daniweb.com/forums/thread36226.html#