Technology Questions

Go Back   Technology Questions > Software Questions > Operating System Questions > Windows XP

Windows XP Discuss the Microsoft Windows XP Operating System

Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old 10-30-2009, 08:30 PM
robert
Newsgroup Contributor
 
Posts: n/a
How to Run Automatic Commands in run/cmd window

I'd like windows xp to run a bat file (automatically) everytime I open up a
dos window - which I usually do by clicking on a little dos window icon in my
task bar.

Possible?

Thanks,
Robert
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

 
Old 10-30-2009, 08:30 PM
  #2 (permalink)  
Old 10-30-2009, 08:59 PM
Registered User
 
Join Date: Oct 2009
Posts: 1
longPK is on a distinguished road
Re: How to Run Automatic Commands in run/cmd window

Automatically run .bat files - Help

It might help you.
__________________
http://surrotech.com/
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #3 (permalink)  
Old 10-30-2009, 09:20 PM
Andrew McLaren
Newsgroup Contributor
 
Posts: n/a
Re: How to Run Automatic Commands in run/cmd window

robert wrote:
> I'd like windows xp to run a bat file (automatically) everytime I open up a
> dos window - which I usually do by clicking on a little dos window icon in my
> task bar.
> Possible?



Hi Robert

Yes, this is very possible!

You need to create a Autorun value under the "Command Processor" key in
the registry. Then give this value the name of your batch file (full
path name, eg "C:\Foo\bar\myfile.bat").

You can do this under HKEY\LOCAL_MACHINE to make it apply to all users;
or if you want it only for your own user context, you can define it
under HKEY_CURRENT_USER.

See here for full details:

http://www.microsoft.com/resources/d....mspx?mfr=true

Hope it helps,

Andrew

--
amclar at optusnet dot com dot au
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #4 (permalink)  
Old 10-30-2009, 11:00 PM
Pegasus [MVP]
Newsgroup Contributor
 
Posts: n/a
Re: How to Run Automatic Commands in run/cmd window


"robert" <robert@discussions.microsoft.com> wrote in message
news:3CF86582-AB83-4B0E-8AD7-18D725E7CD75@microsoft.com...
> I'd like windows xp to run a bat file (automatically) everytime I open up
> a
> dos window - which I usually do by clicking on a little dos window icon in
> my
> task bar.
>
> Possible?
>
> Thanks,
> Robert


The shortcut for your Command Prompt currently reads like so:

%systemroot%\system32\cmd.exe

Now modify it like so:

%systemroot%\system32\cmd.exe /k c:\Tools\Robert.bat

That's all there is to it!


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #5 (permalink)  
Old 10-31-2009, 02:00 AM
robert
Newsgroup Contributor
 
Posts: n/a
Re: How to Run Automatic Commands in run/cmd window

That works!

Thanks,
Robert

>"Pegasus [MVP]" wrote:
> The shortcut for your Command Prompt currently reads like so:
>
> %systemroot%\system32\cmd.exe
>
> Now modify it like so:
>
> %systemroot%\system32\cmd.exe /k c:\Tools\Robert.bat
>
> That's all there is to it!


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #6 (permalink)  
Old 10-31-2009, 02:40 AM
Pegasus [MVP]
Newsgroup Contributor
 
Posts: n/a
Re: How to Run Automatic Commands in run/cmd window


"robert" <robert@discussions.microsoft.com> wrote in message
news:83467A69-954D-4E82-81FE-7BA7597A8697@microsoft.com...
> That works!
>
> Thanks,
> Robert


Thanks for the feedback.


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Reply

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: commands in command window not functioning thank_u Windows XP 1 10-12-2009 05:20 AM
Voice Recognition/Commands, Disable Automatic Mouse Movements JeffersonKim Windows Vista 0 04-29-2008 10:50 AM
Commands not recognized in cmd window Rusty Windows XP 3 10-19-2007 07:00 AM
Mouse automatic activitation of commands Mike Felix Windows Vista 0 05-23-2007 10:20 AM
Commands in command window MS Windows XP 6 01-23-2007 11:15 AM


New To Technology Questions? Do You Need Help with Your Computer or Device? Do You Need Help with this site?

All times are GMT -8. The time now is 08:51 PM.


2003 - 2009 All Rights Reserved. Technology Questions

Search Engine Friendly URLs by vBSEO 3.3.0