answersLogoWhite

0

How you autorun a batch file?

Updated: 8/18/2019
User Avatar

Wiki User

13y ago

Best Answer

you can autorun a batch file using another batch file which will make it go off after a certain amount of time heres what you should do:

@echo off

color0a

echo 5

ping localhost -n 2 >nul

cls

echo 4

ping localhost -n 2 >nul

cls

echo 3

ping localhost -n 2 >nul

cls

echo 2

ping localhost -n 2 >nul

cls

echo 1

ping localhost -n 2 >nul

cls

echo 0

ping localhost -n 2 >nul

cls

((((note you can make this time longer if u notice the pattern))))(delete me)

start (location of file here)

to find file location right click on desktop click new>shortcut> search for file>click ok>copy the link>close the shortcut via the X>paste it in

there times autorun

User Avatar

Wiki User

13y ago
This answer is:
User Avatar

Add your answer:

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

What is the extension of batch file?

the extension of a batch file is ".bat"


Microsoft office 2007 autorun failure?

If the Autorun file is missed or affected by virus you have few options to install office again! 1, Ask the retailer to get the file ( assuming you bought it) 2. if you get it from a friend or using the copy ask a friend to get the autorun file 3, pull your hair like me a scream for a while and release the anger! Then your done!


What does the Autorun file do on a software DVD?

The autorun file tells Windows to take certain actions automatically when the DVD is inserted. For example, if the DVD includes an installer or setup program, a very common thing for the autorun file to do is tell Windows to run that program, rather than make the user have to go in and run it himself. Autorun is becoming less common and will probably eventually be eliminated altogether though, since it's a big security risk.


Can a file with a weird extension but with batch file code be read using another batch file?

Nope, the format of a file is a vital part of a successful batch file. Even if a file with an unknown file format contains working batch file code in it, a batch file will still not be able to read it because of its foreign file extension. If you want the batch file to be able to read the foreign file, then you can set it to rename the mutated file to .bat format and then read it for it to work. Example: @Echo off REN File.Foreign File.bat CALL File.bat exit


What is a batch file?

A batch file is the text file that contains a series of commands that MS-DOS carries out. A batch file is created by COPY CON command after specifying a file name by using extension as .BAT in DOS mode.


How do you remove autorun virus from computer?

You have to Insert your pen drive into usb slot. Open pen drive. Right click on space. Create a new empty text document with the name "autorun.inf". Save the document, it will ask you to replace existing autorun file. Click yes. Now you have replaced virus autorun file with empty autorun.inf file. You don't have virus now.


How do you extract code from batch file?

You can just open the batch file with notepad and look at the code


Is there any batch file editor to create batch file without learning syntax?

You can't download a program that makes a batch file to do what you want to do. You will need to legally learn about hacking, and then write the file yourself.


Which file do I go to after cd doesn't run by itself?

Setup usually works or autorun


A file with a bat file extension is called an what?

A batch file.


What is Batch File Maker?

you can use notepad for creating a batch file. just when you save the file that you made, add .bat as a file extension. like this: "sample.bat".


What do you call a little program made from batch file?

A Batch Script