How to Open a command window automatically from Startup folder Windows XP

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • SilverGS
    New Member
    • Nov 2009
    • 1

    #1

    How to Open a command window automatically from Startup folder Windows XP

    I want to automatically open a Command Window from the Startup folder in Windows XP.

    right now after XP starts, I click on Start run, cmd and then when the command window is open I type in a bunch of commands to start a program and I leave the command window open as the program I am running runs in the command window.

    How can I invoke the command window via a .bat file, and then run my commands automatically?

    I have the second part working:

    I manually open a command window and then I call my batch file that runs my program. I want to automate the first part of opening the command window via batch file from the startup folder so that whenever I login to my pc it automatically runs. The program I am running is not a service, so I can't set it up as service to start automatically.
  • Studlyami
    Recognized Expert Contributor
    • Sep 2007
    • 464

    #2
    To open a cmd window and call your batch file create a new .bat file and in the first line put:

    start <directory of your .bat file to run>

    i.e. start C:\"Documents and Settings"\User\ Desktop\TestBat ch.bat

    Now create a shortcut of this new bat file (the one i called TestBatch.bat).
    now goto
    StartMenu->All Programs->Startup
    Right click startup and select open.
    Cut and paste your shortcut into this folder.

    Comment

    Working...