Tuesday, May 25, 2010

Oracle output on HTML file


SET MARKUP HTML ON SPOOL ON HEAD "<TITLE>SQL*Plus Report</title> -
<STYLE TYPE='TEXT/CSS'><!--BODY {background: ffffc6} --></STYLE>"
SET ECHO OFF
SPOOL employee.htm

SELECT sysdate from dual;
BY modified_date ASC;
SPOOL OFF
SET MARKUP HTML OFF
SET ECHO ON

Monday, May 17, 2010

Forgot to mention subject in mail???

  1. Open your Outlook,
  2. Press Alt+F11. This opens the Visual Basic Editor and then Press Ctrl+R which in turn open Project-Project 1 (left side)
  3. On the Left Pane, one can see "Microsoft Outlook Objects" or "Project1", expand this. Now one can see the "ThisOutLookSession".
  4. Double click on "ThisOutLookSession". It will open up a Code Pane on the right hand side.
  5. Copy and Paste the following code in the right pane (Code Pane) and save it Private Sub Application_ItemSend(ByVal Item As Object, Cancel As Boolean)
        Dim strSubject As String
        strSubject = Item.Subject
        If Len(Trim(strSubject)) = 0 Then
            Prompt$ = "Subject is Empty. Are you sure you want to send the Mail?"
            If MsgBox(Prompt$, vbYesNo + vbQuestion + vbMsgBoxSetForeground, "Check for Subject") = vbNo Then
                Cancel = True
            End If
        End If
    End Sub

     

Wednesday, May 5, 2010

Run Commands

Infrequently Used Run Commands

Below are a list of commands you can type into the Run dialog, split into several categories: programs, control panels, computer administration tools, and special folders.

Programs

Character Mapcharmap
Check Disk Utilitychkdsk
Clipboard Viewerclipbrd
Free Cellfreecell
Hearts Cardmshearts
Microsoft Chatwinchat
Minesweeperwinmine
On Screen Keyboardosk
Remote Desktopmstsc
Spider Solitarespider
Telnet Clienttelnet
Windows Magnifiermagnify

Control Panels

Accessibility Controlsaccess.cpl
Add Hardware Wizardhdwwiz.cpl
Add/Remove Programsappwiz.cpl
Administrative Toolscontrol admintools
Automatic Updateswuaucpl.cpl
Date and Timetimedate.cpl
Display Propertiesdesk.cpl
Folders Propertiescontrol folders
Fontscontrol fonts
Fonts Folderfonts
Game Controllersjoy.cpl
Internet Propertiesinetcpl.cpl
Keyboard Propertiescontrol keyboard
Mouse Propertiescontrol mouse
Network Connectionscontrol netconnections
Network Setup Wizardnetsetup.cpl
ODBC Data Source Administratorodbccp32.cpl
Password Propertiespassword.cpl
Phone and Modem Optionstelephon.cpl
Power Configurationpowercfg.cpl
Printers and Faxescontrol printers
Printers Folderprinters
Regional Settingsintl.cpl
Scanners and Camerassticpl.cpl
Security Centerwscui.cpl
Sounds and Audiommsys.cpl
User Account Managementnusrmgr.cpl
Windows Firewallfirewall.cpl

Computer Administration Tools

Computer Managementcompmgmt.msc
Device Managerdevmgmt.msc
Disk Cleanup Utilitycleanmgr
Disk Defragmentdfrg.msc
Disk Managementdiskmgmt.msc
Disk Partition Managerdiskpart
Dr. Watson System Troubleshootingdrwtsn32
Driver Verifier Utilityverifier
Event Viewereventvwr.msc
Group Policy Editor (XP Prof)gpedit.msc
Local Security Settingssecpol.msc
Local Users and Groupslusrmgr.msc
Performance Monitorperfmon
Resultant Set of Policyrsop.msc
Scheduled Taskscontrol schedtasks
Servicesservices.msc
Shared Foldersfsmgmt.msc
System Configuration Editorsysedit
System Configuration Utilitymsconfig
Utility Managerutilman
Windows System Security Toolsyskey

Computer Administration Tools

Application Data Folder%appdata%
Home Directory Drive%homedrive%
Home Directory%homepath%
Shared Home Directory%homeshare%
Temporary Folder%temp%
Windows Root Drive%systemdrive%
Windows Root Directory%windir%

Creating Your Own Run Commands

  • Win+R to open the Run dialog
     
  • Enter %windir% to open the Windows directory
     
  • Create a shortcut to the desired program
     
  • The name you give the shortcut is what you type in the Run dialog to start the program