Search This Blog

Monday, June 25, 2012

Excel Move comment into cell as text

Sub ExtractComments()

Dim rComm As Range

Dim Comm

Dim sTmp As String

Set rComm = Cells.SpecialCells(xlCellTypeComments)

For Each Comm In rComm

    '// get Comment text string

    sTmp = Comm.Comment.Text

    '// Move it to cell next

    Comm.Offset(0, 1) = sTmp

    '// Now delete the comment

    Comm.Comment.Delete

Next

Set rComm = Nothing

End Sub

Tuesday, November 8, 2011

Error messages in Outlook

When you have a problem using Outlook, you usually get an error message which looks like this:



The key information comes in the error message in the form of an error number. In the above example, the error number is 0x800CCC92.
If you get such an error message locate the error number below on this page and follow the guide to fix it.


Common error numbers


Error 0x800CCC91 Your Username was rejected
Error 0x800CCC92 Your Password was rejected
Error 0x800CCC7D The server does not support a SSL connection
Error 0x800CCC0D The host could not be found
Error 0x800CCC0E The connection to the server has failed
Error 0x800CCC0F Your server has unexpectedly terminated the connection
Error 0x800CCC79 The message could not be sent because one of the recipients was rejected by the server
Error 0x8004210a The operation timed out waiting for a response from the receiving (POP) server
Error 0x800ccc19 A time-out occurred while communicating with the server



Error 0x800CCC91


This error message is caused by the fact that you have set an antivirus program to scan all emails automatically.
Changing the settings within Outlook will not solve the issue. You need to go to your antivirus program and change the settings there.
To learn how to do this in Norton Antivirus click here.



Error 0x800CCC92


Check your Outlook settings, making sure that your POP3 and SMTP usernames, passwords and servers are correct.
If you are still getting this error, it is possible that your password has somehow become corrupted. Try changing it in your account's control panel.
Also, make sure that your account and domain name are still active.



Error 0x800CCC7D


You get this error because your Outlook is set up to use Secure Socket Layer (SSL), which we don't use.
To fix this problem, open Outlook and follow this steps:
    1. Click "Accounts" in the "Tools" menu
    2. Click on your email account then click "Properties"
    3. Click "Advanced"
    4. On this screen remove the checks from the boxes "This server requires a secure connection" for both Outgoing mail (SMTP) and Incoming mail (POP3)



Errors 0x800CCC0D, 0x800CCC0E and 0x800CCC0F


The client connects to a port that is blocked or unavailable on the mail server. If you are attempting to send a message, the blocked port is 25 (SMTP), and if you are attempting to retrieve a message, the blocked port is 110 (POP3). Refer to the error message for the protocol and port numbers.

First check your Outlook settings, making sure that your POP3 and SMTP usernames, passwords and servers are correct. Also, make sure that your account and domain name are still active.
If the settings are correct and your account and domain name are active, one possibility is that you may not be connected to the Internet or the connection is bad. To test your connection follow the procedures below :

For incoming mail server (port 110)
    1. Click the "Start" button then "Run". Type "telnet 110" and press Enter. You will then be connected to the email server
    2. Type in "USER" followed by your email address (example: USER info@hostaggio.com) and then press Enter. You should get a "+OK"
    3. Type in "PASS" followed by your password (example: PASS secretpass) and press Enter. If it is correct, you will get another "+OK"
    4. If you can do this, you have connected to the mail server, so the problem lies somewhere with your Outlook
    If you get "-ERR authorization failed" at step 4, it is possible that your password has somehow become corrupted. Try changing it in your account's control panel and try again.
For outgoing mail server (port 25)
    1. Click the "Start" button then "Run". Type "telnet 25" and press Enter. You will then be connected to the email server
    2. If you see "220 mail.somedomain.com ESMTP", you have connected to the mail server, so the problem lies somewhere with your Outlook
    In the case you receive "connection refused" message or timeout, you need to contact your ISP with the request to open port 25 in their firewall (which they will probably not do). If they don't want to open the port you have to use their SMTP server for your outgoing mail connection. You can obtain their SMTP settings from either their tech support or possibly their web site.
    The following service providers are currently known to block SMTP connections and require your use of their SMTP server: 1st.net, ATT WorldNet, Earthlink, Lineone.net, MSN, Mindspring, Sympatico, Bellsouth.

If you are running a firewall software, configure it to grant access to the Internet for the following file: Msimn.exe
If you have Norton Internet Security or Norton Personal Firewall read this and this information on Symantec's web site.

If you have the Norton Antivirus e-mail scanning feature enabled, read this information on Symantec's web site.



Error 0x800CCC79


The cause of this error is due to the fact that the SMTP server requires authentication.

Check your Outlook settings, making sure that your SMTP username, password, and server are correct.
Then follow this procedure to make sure you set up Outlook to use SMTP authentication :
    1. Click "Accounts" in the "Tools" menu
    2. Click on your email account then click "Properties"
    3. Click "Servers"
    4. Make sure the "My server requires authentication" box is checked

Also, you may get this error because the server does not recognise the senders email address as being valid.
To check your email address follow this procedure :
    1. Click "Accounts" in the "Tools" menu
    2. Click on your email account then click "Properties"
    3. Click "General"
    4. Make sure the address in the "E-mail address" field is created in your account's control panel
    5. Delete messages in the "Outbox" folder and try again




Errors 0x8004210a and 0x800ccc19


This problem occurs when you have Norton Antivirus installed with "Scan incoming Email" and "Scan outgoing Email" turned on. Note that this may also be true when you use McAfee software products. To prevent this problem when you use Norton Antivirus and Outlook, follow the steps below to turn off e-mail scanning:
    1. Quit Outlook.
    2. Start Norton AntiVirus
    3. Click Options. If a menu appears when you click Options, click Norton AntiVirus. The Norton AntiVirus Options dialog box appears.
    4. In the Internet section, click Email.
    5. Click to clear the "Scan incoming Email" and "Scan outgoing Email" check box.
    6. Click OK and close Norton Antivirus.
For additional information, you can also visit this link to the Symantec Web site.


Friday, October 28, 2011

Outlook Command line

When you’re having problems with Outlook you may be told to start Outlook using a specific command line switch.

To do this:

Close Outlook.

At the Start menu, Run command (or open the Run command by pressing Windows Key (windows key icon) + R) type:

Outlook /switch

Then click OK to start Outlook. (There is a space between outlook and /.)

This screenshot shows how you enter it, using the /cleanreminders switch as an example.

Occasionally you’ll need to use the full path to Outlook, then the command line looks like this:

“C:\Program Files\Microsoft Office\Office11\Outlook.exe” /switch

Notes:

Before using a command line switch, you need to close Outlook and verify it’s closed in Task Manager’s Processes tab.

Paths that include spaces between words must be enclosed in quotation marks (“) and are case sensitive.

If you use Vista or Windows 7, you can type the command line in the Start Search field on the Start menu.

You’ll need the full path if you want to create desktop shortcuts using a switch, such as to open Outlook to a specific folder:

“C:\Program Files\Microsoft Office\Office11\Outlook.exe” /select outlook:calendar

Frequently used Switches:

This group of switches are the most commonly used switches. (A complete list of switches is in the next section.)

/cleanreminders

Clears and regenerates reminders.

/cleanviews

Restores default views. Use with care as all custom views you created are lost.

/profile profilename

Loads the specified profile. If your profile name contains a space, enclose the profile name in quotation marks.

This switch is useful when there are multiple users of a Windows logon and each has their own Outlook profile. Create desktop shortcuts to load a specific profile – use the following command line in the shortcut, replacing my name with your profile name:

“C:\Program Files\Microsoft Office\Office11\Outlook.exe” /profile “Diane Poremsky”

/profiles

Opens the Choose Profile dialog box regardless of the Options setting on the Tools menu.

/resetnavpane

Outlook 2007 and 2010 only. Resets the navigation pane back to the default when Outlook starts.

/resettodobar

Outlook 2007 and 2010 only. Resets the to-do bar pane to the default settings when Outlook starts.

/safe

Starts Outlook without extensions, Reading Pane, or toolbar customization. Works with all versions.

Can also open Outlook in Safe mode by holding Ctrl key as you click on the Outlook icon

All Switches

/a

Creates an item with the specified file as an attachment.

Usage:

Outlook /a “C:\My Documents\labels.doc”

If no item type is specified, IPM.Note form is assumed. This switch cannot be used with message classes that aren’t based on Outlook.

/altvba otmfilename

Opens the VBA program specified in otmfilename, rather than %appdata%\Microsoft\Outlook\VbaProject.OTM. Use this switch when you need to run macros not in your VBAProject file.

/autorun macroname

Opens Outlook and immediately runs the macro specified in macroname.

/c messageclass

Creates a new item of the specified message class, works for any valid MAPI form.

Examples:

  • /c ipm.activity creates a Journal entry
  • /c ipm.appointment creates an appointment
  • /c ipm.contact creates a contact
  • /c ipm.note creates an e-mail message
  • /c ipm.stickynote creates a note
  • /c ipm.task creates a task

/checkclient

Prompts for the default manager of e-mail, news, and contacts.

/cleanclientrules

Starts Outlook and deletes client-based rules. Used by non-Exchange account users.

/cleandmrecords

Deletes the logging records saved when a manager or a delegate declines a meeting. Used by Exchange Server accounts.

/cleanfinders

Removes Search Folders from the Microsoft Exchange server store.

/cleanfreebusy

Clears and regenerates free/busy information. This switch can only be used when you are able to connect to your Microsoft Exchange server.

/cleanprofile

Removes invalid profile keys and recreates default registry keys where applicable.

/cleanpst

Launches Outlook with a clean Personal Folders file (.pst)

/cleanreminders

Clears and regenerates reminders.

/cleanrules

Starts Outlook and deletes client- and server-based rules.

/cleanschedplus

Deletes all Schedule+ data (free/busy, permissions, and .cal file) from the server and enables the free/busy information from the Outlook Calendar to be used and viewed by all Schedule+ 1.0 users.

/cleanserverrules

Starts Outlook and deletes server-based rules. Used only with Exchange server accounts.

/cleansniff

Overrides the programmatic lockout that determines which of your computers (when running Outlook simultaneously) processes meeting items. The lockout process helps prevent duplicate reminder messages. This switch clears the lockout on the computer it is used, enabling Outlook to process meeting items.

/cleansubscriptions

Deletes the subscription messages and properties for subscription features. Used with SharePoint alerts.

/cleanviews

Restores default views. Use with care as all custom views you created are lost.

/designer

Starts Outlook without figuring out if Outlook should be the default client in the first run.

/embedding

Opens the specified message file (.msg) as an OLE embedding. Also used without command-line parameters for standard OLE co-create.

/explorer

Opens the new window in “explorer” mode (link bar on).

/f msgfilename

Opens the specified message file (.msg) or Microsoft Office saved search (.oss).

/firstrun

Starts Outlook as if it were run for the first time.

/folder

Opens a new window in “folder” mode (Navigation Pane off).

/hol holfilename

Opens the specified .hol file.

/ical icsfilename

Opens the specified .ics file.

/importprf prffilename

Launches Outlook and opens/imports the defined MAPI profile (*.prf). If Outlook is already open, queues the profile to be imported on the next clean launch.

/l olkfilename

Opens the specified .olk file.

/launchtraininghelp assetid

Opens a Help window with the Help topic specified in assetid.

/m emailname

Provides a way for the user to add an e-mail name to the item. Use either the full address or let alias resolve. Only works in conjunction with the /c command-line parameter.

Usage:

Outlook.exe /c ipm.note /m test@poremsky.com

Outlook.exe /c ipm.note /m dianep

/nocustomize

Starts Outlook without loading outcmd.dat (customized toolbars). With older versions of Outlook the *.fav file doesn’t load.

/noextensions

Starts Outlook with extensions turned off, but listed in the Add-In Manager.

/nopollmail

Starts Outlook without checking mail at startup.

/nopreview

Starts Outlook with the Reading Pane off and removes the option from the View menu.

/p msgfilename

Prints the specified message (.msg). Does not work with HTML.

/profile profilename

Loads the specified profile. If your profile name contains a space, enclose the profile name in quotation marks.

/profiles

Opens the Choose Profile dialog box regardless of the Options setting on the Tools menu.

/recycle

Starts Outlook using an existing Outlook window, if one exists. Can be used in combination with /explorer or /folder. The Outlook shortcut in the Quick Launch bar uses the /recycle switch.

/resetfoldernames

Resets default folder names (such as Inbox or Sent Items) to default names in the current Office user interface language.

For example, if you first connect to your mailbox Outlook using a Russian user interface, the Russian default folder names cannot be renamed. To change the default folder names to another language such as Japanese or English, you can use this switch to reset the default folder names after changing the user interface language or installing a different language version of Outlook.

/resetfolders

Restores missing folders for the default delivery location.

/resetnavpane

Clears and regenerates the Navigation Pane for the current profile. Removes all Shortcuts and Favorite Folders. Has the same effect as deleting profilename.xml in your user directory.

/rpcdiag

Opens Outlook and displays the remote procedure call (RPC) connection status dialog.

/s filename

Loads the specified shortcuts file (.fav). Use to load *.fav files created in older versions of Outlook.

/safe

Starts Outlook without extensions, Reading Pane, or toolbar customization.

/safe:1

Starts Outlook with the Reading Pane off. New to Outlook 2003.

/safe:2

Starts Outlook without checking mail at startup. New to Outlook 2003.

/safe:3

Starts Outlook with extensions turned off, but listed in the Add-In Manager. Outlook 2003 only.

/safe:4

Starts Outlook without loading Outcmd.dat (customized toolbars) and *.fav file. Outlook 2003 only.

/select foldername

Starts Outlook and opens the specified folder in a new window.

Usage:

“C:\Program Files\Microsoft Office\Office11\Outlook.exe” /select outlook:calendar

outlook /select “outlook:Inbox\Old Messages”

/sniff

Starts Outlook and forces a detection of new meeting requests in the Inbox, and then adds them to the calendar.

/t oftfilename

Opens the specified .oft file.

/v vcffilename

Opens the specified .vcf file.

/vcal vcsfilename

Opens the specified .vcs file.

/x xnkfilename

Opens the specified .xnk file.

Thursday, May 19, 2011

PNR Status

1) Track your PNR status. Track your Train Timings.
Give us your Indian Rail PNR Number and Mobile Number, we will SMS you about any changes in your PNR status or Train Timings.
So that, YOU don't have to go online again and again and again to check them.

OR SMS 'MYPNR ' TO 9220092200

http://www.mypnrstatus.com/

2) PNR Status on Mobile through SMS

To get PNR status of Indian Railways train ticket, enter your 10 digit pnr number, that is printed on the top left corner of your ticket and send it to 97733 00000.

Syntax:

Example

PNR Status On Mobile Phone (Google Search Mobile Number | Pnr Status Enquiry


How to check seat availability

To get train seat availability, send "TRAIN AVAIL TO ON " to 97733 00000.

Syntax: TRAIN AVAIL TO ON

Example

fine indian railways train availability through SMS free

Example 2:

To:
9773300000
Message:
TRAIN AVAIL 1018 Bangalore TO Mumbai ON 31-03

How to check bearth availability

To get train schedule, send "TRAIN SCHEDULE to 97733 00000.

Syntax: TRAIN SCHEDULE

Example

train-schedule-through-google-sms

Example 2:

To:
97733 00000
Message:
train schedule 2926

Monday, May 16, 2011

NTLDR is Missing

NTLDR is Missing.

Issue:

NTLDR is Missing.

Related errors:

Below are the full error messages that may be seen when the computer is booting.

NTLDR is Missing
Press any key to restart

Boot: Couldn't find NTLDR
Please insert another disk

NTLDR is missing
Press Ctrl Alt Del to Restart

Cause:

  1. Computer is booting from a non-bootable source.
  2. Computer hard disk drive is not properly setup in BIOS.
  3. Corrupt NTLDR and/or NTDETECT.COM file.
  4. Misconfiguration with the boot.ini file.
  5. Attempting to upgrade from a Windows 95, 98, or ME computer that is using FAT32.
  6. New hard disk drive being added.
  7. Corrupt boot sector / master boot record.
  8. Seriously corrupted version of Windows 2000 or Windows XP.
  9. Loose or Faulty IDE/EIDE hard disk drive cable.

Solutions:

Computer is booting from a non-bootable source

Many times this error is caused when the computer is attempting to boot from a non-bootable floppy disk or CD-ROM. First verify that no floppy diskette is in the computer, unless you are attempting to boot from a diskette.

If you are attempting to boot from a floppy diskette and are receiving this error message it is likely that the diskette does not have all the necessary files and/or is corrupt.

If you are attempting to install Windows XP or Windows 2000 and are receiving this error message as the computer is booting verify that your computer BIOS has the proper boot settings. For example, if you are attempting to run the install from the CD-ROM make sure the CD-ROM is the first boot device, and not the hard disk drive.

Second, when the computer is booting you should receive the below prompt.

Press any key to boot from the CD

Important: When you see this message press any key such as the Enter key immediately, otherwise it will try booting from the hard drive and likely get the NTLDR error again.

Note: If you are not receiving the above message and your BIOS boot options are set properly it's also possible that your CD-ROM drive may not be booting from the CD-ROM properly. Verify the jumpers are set properly on the CD-ROM drive. Additional information about checking the CD-ROM drive connections can be found on document CH000213.

Additional information: This error has also been known to occur when a memory stick is in a card reader and the computer is attempting to boot from it. If you have any type of card reader or flash reader make sure that no memory stick is inside the computer.

Computer hard disk drive is not properly setup in BIOS

Verify that your computer hard disk drive is properly setup in the BIOS / CMOS setup. Improper settings can cause this error. Additional information on how to enter the BIOS / CMOS setup can be found in document CH000192.

Corrupt NTLDR and/or NTDETECT.COM file

Windows 2000 users
Windows XP users

Windows 2000 users

If your computer is using Microsoft Windows 2000 and you are encountering the NTLDR error. Create the below boot.ini file on the floppy diskette drive.

[boot loader]
timeout=30
default=multi(0)disk(0)rdisk(0)partition(1)\WINNT
[operating systems]
multi(0)disk(0)rdisk(0)partition(1)\WINNT="Microsoft Windows 2000 Professional" /fastdetect

Copy the NTLDR and NTDETECT.COM files from another computer using the same operating system. Both of these files are located in the root directory of the primary hard disk drive. For example, C:\NTLDR and C:\NTDETECT.COM should be the locations of these files on many computers.

  • Please keep in mind that these files are hidden system files, if you need additional help with viewing hidden files in Windows please see document CH000516.

Once these files have been copied to a floppy diskette reboot the computer and copy the NTLDR and NTDETECT.COM files to the root directory of the primary hard disk drive. Below is an example of what commonly should be performed from the A:\> drive.

copy ntldr c:
copy ntdetect.com c:

After the above two files have been copied, remove the floppy diskette and reboot the computer.

Windows XP users

  1. Insert the Windows XP bootable CD into the computer.
  2. When prompted to press any key to boot from the CD, press any key.
  3. Once in the Windows XP setup menu press the "R" key to repair Windows.
  4. Log into your Windows installation by pressing the "1" key and pressing enter.
  5. You will then be prompted for your administrator password, enter that password.
  6. Copy the below two files to the root directory of the primary hard disk. In the below example we are copying these files from the CD-ROM drive letter, which in this case is "e." This letter may be different on your computer.

    copy e:\i386\ntldr c:\
    copy e:\i386\ntdetect.com c:\
  7. Once both of these files have been successfully copied, remove the CD from the computer and reboot.

Misconfiguration with the boot.ini file

Edit the boot.ini on the root directory of the hard disk drive and verify that it is pointing to the correct location of your Windows operating system and that the partitions are properly defined. Additional information about the boot.ini can be found on document CH000492.

Attempting to upgrade from a Windows 95, 98, or ME computer that is using FAT32

If you are getting this error message while you are attempting to upgrade to Windows 2000 or Windows XP from Windows 95, Windows 98, or Windows ME running FAT32 please try the below recommendations.

  1. Boot the computer with a Windows 95, Windows 98 or Windows ME bootable diskette.
  2. At the A:\> prompt type:

    sys c:
  3. After pressing enter you should receive the "System Transferred" message. Once this has been completed remove the floppy diskette and reboot the computer.

New hard disk drive being added

If you are attempting to add a new hard disk drive to the computer make sure that drive is a blank drive. Adding a new hard disk drive to a computer that already has Windows installed on it may cause the NTLDR error to occur.

If you are unsure if the new drive is blank or not try booting from a bootable diskette and format the new hard disk drive.

Corrupt boot sector / master boot record

It's possible your computer's hard disk drive may have a corrupt boot sector and/or master boot record. These can be repaired through the Microsoft Windows Recovery console by running the fixboot and fixmbr commands.

Additional information and help in getting into the Microsoft Windows Recovery console can be found on document CH000627.

Seriously corrupted version of Windows 2000 or Windows XP

If you have tried each of the above recommendations that apply to your situation and you continue to experience this issue it is possible you may have a seriously corrupted version of Microsoft Windows. Therefore we would recommend you reinstall Microsoft Windows 2000 and Windows XP.

If you are encountering this issue during your setup you may wish to completely erase your computer hard disk drive and all of its existing data and then install Microsoft Windows 2000 / Windows XP. Additional information about erasing the computer and starting over can be found on document CH000186.

Loose or Faulty IDE/EIDE hard disk drive cable

This issue has been known to be caused by a loose or fault IDE/EIDE cable. If the above recommendation does not resolve your issue and your computer hard disk drive is using an IDE or EIDE interface. Verify the computer hard disk drive cable is firmly connected by disconnected and reconnecting the cable.

If the issue continues it is also a possibility that the computer has a faulty cable, try replacing the hard disk drive cable with another cable and/or a new cable.

How to troubleshoot the "NTLDR Is Missing" error message in Windows 2000

View products that this article applies to.

This article was previously published under Q318728

On This Page

Expand all | Collapse all

SUMMARY

This step-by-step article describes methods that you can use to troubleshoot th...

This step-by-step article describes methods that you can use to troubleshoot the "NTLDR Is Missing" error message that you may receive when you try to start Microsoft Windows 2000.

Back to the top

How to Troubleshoot the "NTLDR Is Missing" Error Message

When you start your Windows 2000-based computer, you may receive the following error message:

NTLDR is missing
Press any key to restart

This problem may occur if the basic input/output system (BIOS) on your computer is outdated, or if one or more of the following Windows boot files are missing or damaged:

Ntldr
Ntdetect.com
Boot.ini

To resolve this issue, verify that the BIOS on your computer is current, and then use one or more of the following methods, as appropriate to your situation, to repair the Windows 2000 startup environment.

IMPORTANT: Microsoft recommends that you fully back up your data on a regular basis. This is the best defense against data loss, and it must be a part of any disaster recovery plan.


Verify That the BIOS on the Computer Is Current

Make sure that the latest revision for BIOS is installed on the computer. Contact the computer manufacturer to inquire about how to obtain, and then install the latest BIOS update that is available for the computer.

For information about how to configure and how to verify the correct BIOS settings for the computer, see the computer documentation or contact the manufacturer of the computer. For information about how to contact your computer manufacturer, click the appropriate article number in the following list to view the article in the Microsoft Knowledge Base:

65416 (http://support.microsoft.com/kb/65416/ ) Hardware and software vendor contact information, A-K

60781 (http://support.microsoft.com/kb/60781/ ) Hardware and software vendor contact information, L-P

60782 (http://support.microsoft.com/kb/60782/ ) Hardware and software vendor contact information, Q-Z

For more information about how to contact BIOS manufacturers, click the following article numbers to view the articles in the Microsoft Knowledge Base:

243909 (http://support.microsoft.com/kb/243909/ ) List of BIOS manufacturer Web sites Part 1

243971 (http://support.microsoft.com/kb/243971/ ) List of BIOS manufacturer Web sites Part 2

To repair the Windows startup environment, use one or more of the following methods, as appropriate to your situation.


Method 1: Use a Boot Disk to Start the Computer

  1. Create a Windows 2000 boot disk that contains the following files:

Ntldr
Ntdetect.com
Boot.ini
Ntbootdd.sys

For more information about how to create a boot disk, click the following article numbers to view the articles in the Microsoft Knowledge Base:

301680 (http://support.microsoft.com/kb/301680/ ) How to create a boot disk for an NTFS or FAT partition in Windows

101668 (http://support.microsoft.com/kb/101668/ ) How to use a Windows boot disk to prevent boot failure

  1. Modify the Boot.ini file to point to the correct hard disk controller and to the correct volume for your Windows installation. For more information about how to create a boot disk, click the following article number to view the article in the Microsoft Knowledge Base:

311578 (http://support.microsoft.com/kb/311578/ ) How to edit the Boot.ini file in Windows 2000

  1. Insert the boot disk into the computer's floppy disk drive, and then restart the computer.
  2. Copy the Ntldr file, the Ntdetect.com file, and the Boot.ini file from the boot disk to the system partition of the local hard disk.

Method 2: Use the Recovery Console

  1. Use the Windows 2000 Setup disks to restart the computer, or use the Windows 2000 CD-ROM to restart the computer.
  2. At the Welcome to Setup screen, press R to repair the Windows 2000 installation.
  3. Press C to repair the Windows 2000 installation by using the Recovery Console.
  4. Type the number that corresponds to the Windows installation that you want to repair, and then press ENTER. For example, type 1, and then press ENTER. For more information, click the following article number to view the article in the Microsoft Knowledge Base:

229716 (http://support.microsoft.com/kb/229716/ ) Description of the Windows Recovery Console

  1. Type the Administrator password, and then press ENTER.
  2. Type map, and then press ENTER. Note the drive letter that is assigned to the CD-ROM drive that contains the Windows 2000 CD-ROM.
  3. Type the following commands, pressing ENTER after you type each one, where drive is the drive letter that you typed in step 4 of "Method 2: Use the Recovery Console," of this article:

copy drive:\i386\ntldr c:\

copy drive:\i386\ntdetect.com c:\

If you are prompted to overwrite the file, type y, and then press ENTER.

NOTE: In these commands, there is a space between the ntldr and c:\, and between ntdetect.com and c:\.

  1. Type the following command, and then press ENTER:

type c:\Boot.ini

A list similar to the following list appears:

[boot loader]
timeout=30
default=multi(0)disk(0)rdisk(0)partition(1)\WINNT
 
[operating systems]
multi(0)disk(0)rdisk(0)partition(1)\WINNT="Microsoft Windows 2000 Professional" /fastdetect
                                        

If you receive the following message, the Boot.ini file may be missing or damaged:

The system cannot find the file or directory specified.

  1. If the Boot.ini file is missing or damaged, create a new one. To do so, follow these steps:

a. Use a text editor, such as Notepad or Edit.com, to create a boot loader file similar to the following boot loader file:

b.  [boot loader]
c.  timeout=30
d.  default=multi(0)disk(0)rdisk(0)partition(1)\WINNT
e.   
f.  [operating systems]
g.  multi(0)disk(0)rdisk(0)partition(1)\WINNT="Microsoft Windows 2000 Professional" /fastdetect
                                         

For more information, click the following article number to view the article in the Microsoft Knowledge Base:

102873 (http://support.microsoft.com/kb/102873/ ) Boot.ini and ARC path naming conventions and usage

301680 (http://support.microsoft.com/kb/301680/ ) How to create a boot disk for an NTFS or FAT partition in Windows

h. Save the file to a floppy disk as Boot.ini.

NOTE: If you used Notepad to create the file, make sure that the .txt extension is not appended to the Boot.ini file name.

i. Type the following command at the Recovery Console command prompt to copy the Boot.ini file from the floppy disk to the computer:

copy a:\Boot.ini c:\

Type exit, and then press ENTER. The computer restarts.

Method 3: Use the Windows 2000 CD-ROM

  1. Insert the Windows 2000 CD-ROM into the computer's CD-ROM drive or DVD-ROM drive, and start Windows 2000 Setup.
  2. On the Welcome to Setup page, press R.
  3. On the Windows 2000 Repair Options page, press R.
  4. When you are prompted to select one of the repair options, press M.
  5. Press the UP ARROW, press the UP ARROW again, to select Verify Windows 2000 system files, and then press ENTER to clear the selection.
  6. Press the DOWN ARROW to select Continue (perform selected tasks), and then press ENTER. The following message appears:

You need an Emergency Repair disk for the Windows 2000
installation you want to repair.

  1. Do one of the following, as appropriate to your situation:
    • If you have an Emergency Repair Disk, follow these steps:

a. Press ENTER.

b. Insert the Emergency Repair Disk into the computer's floppy disk drive, and then press ENTER.

c. Follow the instructions to repair the installation, and then restart the computer.

-or-

If you do not have an Emergency Repair Disk, follow these steps:

. Press L. You receive a message similar to the following:

Setup has found Windows 2000 in the following folder:

drive:\WINNT "Microsoft Windows 2000"

a. Press ENTER.

Setup examines the disks, and then completes the repair process.

For more information about the emergency repair feature, click the following article number to view the article in the Microsoft Knowledge Base:

231777 (http://support.microsoft.com/kb/231777/ ) How to create an Emergency Repair Disk in Windows 2000




If Setup Cannot Locate Windows 2000

If you do not have a Windows 2000 Emergency Repair Disk, and if Setup cannot locate the Windows 2000 installation, follow these steps:

  1. Start Windows 2000 Setup.
  2. On the Setup will install Windows 2000 on partition page, select Leave the current file system intact (no changes), and then press ENTER.
  3. Press ESC to install Windows 2000 to a new folder.
  4. In the Select the folder in which the files should be copied box, type \tempwin, and then press ENTER.

    Setup installs a new copy of Windows 2000.
  5. Log on to the new copy of Windows 2000.
  6. Click Start, and then click Run.
  7. In the Open box, type cmd, and then click OK.
  8. At the command prompt, type drive:, where drive is the boot drive of the computer, and then press ENTER. For example, type c:, and then press ENTER.
  9. Type attrib -h -r -s Boot.ini, and then press ENTER.
  10. Type edit Boot.ini, and then press ENTER.

    Edit.com opens a Boot.ini file that is similar to the following file:
11.[boot loader]
12.timeout=30
13.default=multi(0)disk(0)rdisk(0)partition(1)\TEMPWIN
14.[operating systems]
15.multi(0)disk(0)rdisk(0)partition(1)\TEMPWIN="Microsoft Windows 2000 Professional" /fastdetect
16. 
                                
  1. Replace all instances of TEMPWIN with WINNT. The Boot.ini file that appears is similar to the following file:
18.[boot loader]
19.timeout=30
20.default=multi(0)disk(0)rdisk(0)partition(1)\WINNT
21.[operating systems]
22.multi(0)disk(0)rdisk(0)partition(1)\WINNT="Microsoft Windows 2000 Professional" /fastdetect
23. 
                                
  1. Press ALT+F, and then press S.
  2. Press ALT+F, and then press X.
  3. Type attrib +h +r +s Boot.ini, and then press ENTER.
  4. Type exit to quit the command prompt.
  5. Restart the computer.
  6. At the Please select the operating system to start screen, use the ARROW keys to select Microsoft Windows 2000, and then press ENTER.
  7. Start Windows Explorer, locate the following folders, and then delete them:

Tempwin
All Users.Tempwin

The Windows 2000 and Windows XP CDs supplied by Microsoft has a tool called the Recovery Console which can be used to repair errors that prevent Windows XP from starting using the command line. OEM versions of Windows XP, including computers that were supplied with Windows XP preinstalled, may not have this utility.

  • Insert the Windows CD and start the computer.
  • When the Welcome to Setup screen appears, press R.
  • Type a number corresponding to the Windows installation you wish to repair (usually 1) and press Enter.
  • When prompted, type the administrator password and press Enter.
  • From the command prompt, copy NTLDR and NTDETECT.COM from the i386 folder of the CD to the root folder of the hard drive. In the example commands given below, C: is the hard drive and D: is the CD-ROM drive. You will need to change the drive letters if appropriate:
    COPY D:\I386\NTLDR C:\
    COPY D:\I386\NTDETECT.COM C:\
  • Remove the Windows XP CD from the drive and restart the computer.