Don’t need to install 3rd party component, sample script:
METADATA
TYPE=“typelib”
UUID=“CD000000-8B95-11D1-82DB-00C04FB1625D”
NAME=“CDO for Windows 2000 Library”
–>
<%
Set cdoConfig = CreateObject(“CDO.Configuration”)
With cdoConfig.Fields
.Item(cdoSendUsingMethod) = cdoSendUsingPort
.Item(cdoSMTPServer) = “mail.server.com”
.Update
End With
Set cdoMessage = CreateObject(“CDO.Message”)
With cdoMessage
Set .Configuration = cdoConfig
.From = “aaa@abc.com”
.To = “aaa@abc.com”
.CC = “aaa@abc.com”
.BCC = “aaa@abc.com”
.Subject = “Sample CDO Message”
.TextBody = “This is a test for CDO.message”
.Send
End With
Set cdoMessage = Nothing
Set cdoConfig = Nothing
Response.write “<HTML><head><title>A message has been sent.</title></head><body>A message has been sent.</body></HTML>”
%>
3 steps:
1. Turn off HTTP Friendly Errors (IE)
2. execute the following command in command prompt:
3. another command:
Add the following code to config.inc.php of the phpMyAdmin installation:
Response.AddHeader “content-disposition”, “attachment; filename=helloworld.xls”
to export a “number” but appears as “text” in asp-exported-excel:
good for
- numeric data starts with zero
- very long digit (excel would convert it to xxxx+Exx)
- 1-2 (excel converts it to 1-02-2003)
- etc
su - user -c “kill -9 -1″
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\StartPage
Look in the right-hand pane for a value named Favorites. This binary value defines your pinned Start menu items. You can’t edit it, but you can get rid of it and start fresh.
Click ’start’->run and type ‘gpedit.msc’ in run window.
User configuration -> Administrative Templates ->Control Panel-> Display.
Double click on following items to open properties window and change the setting to disabled.
- Remove Display in Control Panel
- Hide Desktop Tab
- Prevent changing wallpaper
- Hide Appearance and Themes tab
- Hide Settings tab
- Hide Screen Saver tab
date -s “2 OCT 2006 18:00:00″

