How to run a .BAT file at startup?

Pierre -  
 bh -
Hello!

I'M GETTING INTO MS DOS!

I'm starting to get familiar with batch files
I'm trying to apply different commands
and I was wondering how (if it's possible) to run operations at Windows startup using AUTOEXEC.BAT

I added the CALL command in AUTOEXEC.BAT to call a second bat file, placed at the root of C:\ of course, but nothing happens at startup, it works when I click on it though.

AUTOEXEC.BAT is apparently no longer useful under XP or 2K, but can we still use it to add commands at startup????

If anyone can tell me more, I would greatly appreciate it!

THANKS EVERYONE!!!

@+ Pierre.

8 réponses

IBA
 
TO RUN A .BAT FILE AT STARTUP

* FOR EXAMPLE, LET'S CREATE A FILE THAT LAUNCHES WORD AT STARTUP

FOLLOW THE STEPS BELOW:

1/ NAVIGATE TO THE ROOT C:\ AS FOLLOWS
* START - ALL PROGRAMS - ACCESSORIES - COMMAND PROMPT
YOU WILL THEN SEE C:\WINDOWS>
TYPE CD.. OR CD\ TO CLOSE THE WINDOWS DIRECTORY
C:\>

2/ TYPE COPY CON LANCER.BAT AND PRESS ENTER
3/ TYPE START WINWORD.EXE OR WINWORD
4/ PRESS F6 TO SAVE
5/ COPY THE LANCER.BAT FILE TO THE WINDOWS\STARTUP FOLDER
NOTE THAT A .BAT FILE IS ALWAYS EXECUTED AT EACH STARTUP OR RESET OF THE COMPUTER

IT IS ALSO POSSIBLE TO CREATE THIS FILE WITHOUT GOING THROUGH DOS
* JUST CREATE A SCHEDULED TASK

THANK YOU
26
il est agréable de voir qu'il y a encore des gens qui par
 
He is
1
bh > il est agréable de voir qu'il y a encore des gens qui par
 

what is he? you’re smoking me a hat

-1
claude ray Posted messages 3096 Registration date   Status Contributeur Last intervention   702
 
Hello
If your .bat file is called for example toto.bat
in your autoexec.bat simply add a line with toto.bat. That's it. You can also do it by starting -- Run

Claude
13
foico Posted messages 56 Status Membre 12
 
Hi,
you can simply copy the shortcut into the Startup folder and your program will launch on Windows startup. The shortcut offers you an additional tab to manage the MS-DOS mode.
amts
Foico
6
karamel
 
Hi,

where can I find my startup file? Is it enough once I copy my .bat file into this folder for it to start launching at every boot? Please explain to me in detail what I can do for it to launch at startup? Thank you.
4
soufiane_raicom
 
you start------>run-------->sysedit

ok
4
karamel
 
Hello
where can I find my AUTOEXEC.bat file? I've searched everywhere on my C: drive but couldn't find it. I want to mention that I have Windows XP. Thank you.
1
arkhain
 
Thank you very much, I succeeded ;)
1
Nicolasestla
 
They tell me access denied, what should I do?

Thank you in advance.
0
Sebinator
 
If you create your .bat via cmd.exe on Windows Vista or 7, you need to run cmd.exe as an administrator.

To do this, right-click on the cmd.exe name and select "Run as administrator." After that, all the instructions above will work.
0