Top 10 Printer Driver for Mac | PPT to PDF converter | Mac photo editing software | Powerpoint to video converter | OCR Converter | Mozilla Firefox for Mac
Home > Windows Registry Tips > Other Tips > Automatically run a batch file when you open a Windows XP command prompt

Windows Registry Tips





Automatically run a batch file when you open a Windows XP command prompt

RegistryBooster 2010 - You no longer need to guess! This free stability scan will help you clean, repair and optimize your system in an easy way.



Automatically run a batch file when you open a Windows XP command prompt


You probably run the same few commands each time you start using the command prompt in Windows XP. For example, perhaps you first switch to the root directory and then clear the screen. Then, you may have put these commands into a batch file and saved the file to the C:\Documents and Settings\{username} folder so that when you open the command prompt, you simply type the name of the batch file to issue the commands.

You can save yourself from typing any commands at all if you add the path and name of the batch file to a special key in the registry. Here's how to add them:



  1. Launch the Registry Editor (Regedit.exe).


  2. Go to the HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Command Processor key.


  3. Double-click the AutoRun value to access the Edit String dialog box.


  4. In the Value Data text box, type the path and name of the batch file. Be sure to enclose the text in double quotes ¡ª for example, "C:\Documents and Settings\greg\go.bat".


  5. Close the Registry Editor.


Now, your batch file will automatically run every time you open the command prompt window.

Caution: Editing the registry is risky, so make sure you have a verified backup before making any changes.


How to backup Windows registry?

How to compact Windows Registry?

How to repair Windows Registry?

Other Tips

  • How to access registry on XP computer

    How to access registry on XP computer? You should make a backup of the entire Registry and a copy of the key name before you make that modification on Windows XP Registry . ...

    Add Time:07.09, 2008    Hits:11,803

  • Tweak your Windows Mobile registry: Best RegEdit

    Tweak your Windows Mobile registry: Best RegEdit Best RegEdit is an advanced tool for viewing and changing settings in your system registry on your Windows Mobile device. ...

    Add Time:08.25, 2008    Hits:4,860

  • Configure the Windows XP logon screen saver

    Configure the Windows XP logon screen saver If you ever work in a computer lab or an Internet cafe where systems regularly sit idle waiting for someone to log on, you know that Windows XP...

    Add Time:09.03, 2008    Hits:3,769

  • Automatically run a batch file when you open a Windows XP command prompt

    Automatically run a batch file when you open a Windows XP command prompt You probably run the same few commands each time you start using the command prompt in Windows XP. For example,...

    Add Time:09.03, 2008    Hits:3,743

  • How to activate the NumLock key when Windows starts

    How to activate the NumLock key when Windows starts Here shows you how to activate the NumLock key when Windows starts through registry. You can do this just by...

    Add Time:06.25, 2008    Hits:3,576

  • How do you open registry editor

    How do you open registry editor? What is the Windows Registry? The Windows registry is a central database of information needed to configure your computer system for...

    Add Time:07.09, 2008    Hits:3,133

  • How to display message before Logon

    How to display message before Logon? If you want to pop up a message box when Computer starts and before logon screen on Win9X or WinNT, then you can use this trick. Run...

    Add Time:08.25, 2008    Hits:2,911

  • Oracle database service startup process stops responding

    Oracle database service startup process stops responding After you install the MS04-011 Security Update for Microsoft Windows on a computer that runs Oracle...

    Add Time:09.05, 2008    Hits:1,998

  • How to Open the Windows Registry Editor

    How to Open the Windows Registry Editor? To edit the Windows registry , you will need to open Regedit, the Windows Registry Editor. Be sure to read the warnings below before using...

    Add Time:07.08, 2008    Hits:1,955

  • How to power down the computer after shutdown

    How to power down the computer after shutdown Power down the computer after shutdown through registry. You can do this just by setting different value of the certain...

    Add Time:06.25, 2008    Hits:1,854





Copyrright (c) 2001~2009 DownloadAtoZ.com We provide 100,000+ software programs for free download. Your best choice of software reviews & downloads.