Monday, November 24, 2008

Configuring Boot.ini in Windows XP

This article describes how to view and manually configure the Boot.ini file in Windows XP from within the Startup and Recovery dialog.
In Windows XP, you can quickly and easily locate the Boot.ini to verify and/or edit the file.
It is suggested to backup the Boot.ini file before editing.
The first tasks will involve modifying folder option so as to view hidden files and then backing up the Boot.ini file.

Save a Backup Copy of Boot.ini
Right-click My Computer, and then click Properties.
-or-
Click Start, click Run, type sysdm.cpl, and then click OK.
On the Advanced tab, click Settings under Startup and Recovery.
Under System Startup, click Edit. This opens the file in Notepad ready for editing.
In Notepad, click File on the Menu bar, and then click Save As.
Right click in an empty area of the Save As dialog box, point to New in the context menu, and then click Folder.
Type a name for the new folder, for example temp, and then press the ENTER key to create the folder named temp.
Double-click the new folder named temp, and then click the Save button to save a backup copy of the Boot.ini file.


Edit the Boot.ini File
  1. To view and edit the Boot.ini file:
    Right-click My Computer, and then click Properties.
  2. -or-
  3. Click Start, click Run, type sysdm.cpl, and then click OK.
  4. On the Advanced tab, click Settings under Startup and Recovery.
  5. Under System Startup, click Edit.
Sample Boot.ini File
This is a sample of a default Boot.ini file from a Windows XP Professional computer.


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

This is a sample of the above Boot.ini file with a previous installation of Windows 2000 on a separate partition.

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


Modifying the Boot.ini
While you can modify the Boot.ini file using the Startup and Recovery dialog, where you can select the default operating system, change the timeout value, or manually edit the file, the following method uses the command line utility, Bootcfg.exe.
Note: - The Bootcfg.exe utility is only available in Windows XP Professional. This utility is not available in Microsoft Windows XP Home Edition. Therefore, this section does not apply to Windows XP Home Edition.
1. Click Start, and then click Run.
2. In the Open text box, type cmd.
3. At the command prompt, type bootcfg /?.
4. The help and parameters for BOOTCFG.exe will display.


Adding an Operating System
At the command prompt, type:
bootcfg /copy /d Operating System Description /ID#
Where Operating System Description is a text description (e.g. Windows XP Home Edition), and where # specifies the boot entry ID in the operating systems section of the BOOT.INI file from which the copy has to be made.

Removing an Operating System
At the command prompt, type:
bootcfg /delete /ID#
Where # specifies the boot entry ID that you want to be deleted from the operating systems section of the BOOT.INI file (e.g. 2 for the second Operating system that is listed.

Setting the Default Operating System
At the command prompt, type:
bootcfg /default /ID#
Where # specifies the boot entry id in the operating systems section of the BOOT.INI file to be made the default operating system.

Setting the Time Out
At the command prompt, type:
bootcfg /timeout#
Where # specifies the time in seconds after which default operating system will be loaded.
Open the Boot.ini File to Verify Changes
1. Right-click My Computer, and then click Properties.
-or-
Click Start, click Run, type sysdm.cpl, and then click OK.
2. On the Advanced tab, click Settings under Startup and Recovery.
3. Under System Startup, click Edit.

By this way you can easily Configure the Boot.ini File in Windows XP.

Wednesday, November 12, 2008

Batch File Programming Guide

Batch file programming is nothing but the Windows version of Unix Shell
Programming. Let's start by understanding what happens when we give a
DOS command. DOS is basically a file called command.com
It is this file (command.com) which handles all DOS commands that you
give at the DOS prompt---such as COPY, DIR, DEL etc. These
commands are built in with the Command.com file. (Such commands which
are built in are called internal commands.).DOS has something called
external commands too such as FORMAT,
UNDELETE, BACKUP etc.
So whenever we give a DOS command either internal or external,
command.com either straightaway executes the command (Internal
Commands) or calls an external separate program which executes the
command for it and returns the result (External Commands.)

You can Download the batch Programming Guide From Here

Download

After Making Batch File You can Convert Your Batch Program to Executable from Bat-to-exe Converter. You can Download it Here

Download

Subscribe Now: Google

Followers

Total Pageviews