469,272 Members | 1,464 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,272 developers. It's quick & easy.

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.
Nov 12 '09 #1
1 3202
464 Expert 256MB
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.

Similar topics

4 posts views Thread by Kamilche | last post: by
3 posts views Thread by NeverLift | last post: by
1 post views Thread by DavidS | last post: by
1 post views Thread by Karlo Lozovina | last post: by
8 posts views Thread by T. Crane | last post: by
5 posts views Thread by Chuck Anderson | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by suresh191 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.