answersLogoWhite

0

How do you make a batch file run on startup?

Updated: 8/21/2019
User Avatar

Wiki User

8y ago

Best Answer

Place a shortcut to the batch file in the Start-up folder in the start menu. Note that each user has their own Start-up folder but there's also an all-users start-up folder (the Start-up folder in the start menu is a virtual folder showing the aggregate of both folders). Right-clicking the Start-up folder in the start menu will allow you to "Open" or "Open All Users", where the former applies only to the current user.

The user's startup folder can be found in:

"c:\users\<username>\appdata\roaming\microsoft\windows\start menu\programs\start-up"

Any shortcut placed in this folder will be executed each time you log on, but not for anyone else.

The all-users folder is:

"c:\programdata\microsoft\windows\start menu\programs\start-up"

Any shortcut placed in this folder will be executed regardless of which user logs on.

Note that although you can place binary executables, scripts or batch files in the start menu, it's best to use shortcuts and place the executable itself in an appropriate folder of the program files folder.

User Avatar

Wiki User

8y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How do you make a batch file run on startup?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

How do you run a batch file automatically at start up?

Probably trying to make a virus. It's simple: Drag the batch file you want to start on startup into the startup folder in All Programs.


How can you run a file on startup using CMD?

Make a batch file. Open up notepad, type in the commands just like you would if you had a C:\prompt and choose "save as." When you save it, remove the .txt extension &amp; use .bat instead. Batch files can be executed just like an .exe, any commands in the batch file are put to a command prompt &amp; executed. So just put the batch file (or a shortcut to it) in programs/startup in your start menu &amp; youre done!


Is there a way to make a batch file run as soon as it is saved over msn?

No.


Is there any command to run a batch file in background?

Nope, there are no such things as a batch file that can run in stealth mode. A batch file is too simple to go as far as that. If you are trying to do this, I would recommend you legally learn about hacking. If that feature is enabled, you can run a whole lot of nasty stuff in there without the user knowing what is happening.


Which is the batch file that is automatically run when MS DOS booted?

Autorun.bat


What are batch files used for?

batch files are used to run a series of commands at once. people who work on computers daily and have a series of files or programs to start and command to run often create a batch file to do it automatically and save time.


How do you enter username and password with a batch file?

You can use the run as command in the batch file if you are using windows xp and i think with wondows 2000, unfortunatly it is open text so you have to use another programme to do that.


Is tscdsbl.bat safe to install?

*Never* install any file or run any executable you did not get from a trusted source or that you know to be a good file. Always assume the worst. A .bat file is a batch file used to execute a "Batch" of commands and could have crippling effects on your security. Please, never run something you don't implicitly trust.


How do you create and run a batch program?

Easy enough to create a batch program is you know what the commands are simply goto a text file or notepad and save it as "something.bat" and click on it


When I run a batch file I can open another one in it but how do I make it so that when I open it the rest of the file doesn't exacute until the opened one exits?

Use the CALL command. Enter "CALL /?" at the command prompt for details.


How to create batch file to play songs?

Say you have song name "kajrare.mp3" in your D drive then you can create a batch file to play the song as follows:Go to run and type "cmd". It will open command shell.Go to the location where you want to create batch file say D drive. For this type "d:" and press enter.Now type "edit songs.bat" and press enter. It will open DOS editor. cd d:kajrare.mp3Write following entries:Now save the file by pressing Alt+F+S and exit the editor.A new batch file will create in your D drive. Just double click to run it.


How do you run an .exe from batch file?

Yes, To run a file in batch, do one of the following: If it is in the same folder, start filename.exe If it is in another folder, start C:\%filepath%\.exe ex: start C:\Windows\system32\cmd.exe