CMD - Auto Run Commands On Startup

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
12,146
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Nov 6, 2009

How to make your command prompt run pre-specified commands as soon as it starts up.

Reg Key (regedit):
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Command Processor

Inside the above Reg Key, create a new "Expandable String Value" named "AutoRun" if you don't have one already. Double click it and type in your commands. Separate commands with the "&" sign.

Category:

Howto & Style

Tags:

License:

Standard YouTube License

  • likes, 11 dislikes

Link to this comment:

Share to:

Uploader Comments (MasterJake777)

  • how do i set it do show the date and time ???

  • date and time constants:

    %DATE% %TIME%

    put them somewhere in your echo statement

  • Nice, 5/5 ^_^

    Just wondering what would you type to change text color?

  • The "color" command does that. Open cmd and type "color /?" to get the help info with all of the color commands.

see all

All Comments (20)

Sign In or Sign Up now to post a comment!
  • Thanks! I put exit and when I opened CMD... Then I customized it!

  • Thanks!

  • Good vid.... I need help on how to make a bat file run a program at startup. In other words I want a bat file to run a program as soon as I start my pc or when I log on. Can this be done with a bat file? And what are the commands? Please make a vid or send me written instructions.....

    Thanks for the help!!!!!'

  • @SLAWTERX Before the %DATE% %TIME% thing u gotta put echo. so --> ....&echo.%DATE% %TIME%&...

  • I tried the date and time thing but it didn't work it says

    'Fri' is not recognized as an internal or external command, operable program or batch file.

  • help: When i went on the registry edit, i didn't find the autorun, when i clicked on expandable string value, it said cannot create value. error writing to the registry

  • Thanks man! This pretty helpful, so I can make it like how I want it.

    5/5 :D

  • if you put in auto run the command exit its like disabling the cmd

Loading...

Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more