By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
445,771 Members | 1,741 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 445,771 IT Pros & Developers. It's quick & easy.

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

P: 1
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.
Nov 12 '09 #1
Share this Question
Share on Google+
1 Reply


Expert 100+
P: 464
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\TestBatch.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.
Nov 24 '09 #2

Post your reply

Sign in to post your reply or Sign up for a free account.