answersLogoWhite

0


Best Answer

The command "for" start the loop and "do" is the end of the loop, this two commands should be used with care especially in a autoexec.bat it can put your PC in a infinity loop and you might not be able start it again. For help on all DOS commands in the command prompt just type the word "help" or "?" a space and then the command IE "C:/>help for" or "C:/>? for" then DOS will list everything you need to know about the command.

User Avatar

Wiki User

11y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How do you make a loop in notepad for use in a batch file?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

How to create a batch file and impliment it?

To create a batch file open notepad, textedit, or whatever editor you wish to use. Once open write your program, check for errors, and "make simple text." Save this program as whateveryouwant.bat. Open the file and the batch file will execute.


Why didn't my changes take effect when i saved over a batch file from notepad which was opened in cmd?

Most likely it's because UAC has blocked your batch file. Make sure that you are running cmd in "Administrator mode" or turn off UAC.


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 & use .bat instead. Batch files can be executed just like an .exe, any commands in the batch file are put to a command prompt & executed. So just put the batch file (or a shortcut to it) in programs/startup in your start menu & youre done!


How do you make a shortcut for a word on a batch file on notepad like percent random percent?

Use the SET command. For example: SET folder = C:\some_folder CD %folder% DIR *.*


How do you save a batch file?

Open up a notepad.Type in the the batch parameter you need to run.Then save it as a .bat file.File > Save as > myfile.batExample:If you need to to copy a file (filename picture001.jpg) in C: drive to the D: drive, you can create the batch to do the task by typing the following parameter in the batch file.xcopy [path of the file] [destination path]xcopy C:\picture001.jpg D:Now save it as a batch file and double click to run it.Enjoy!


How do you edit your registry from a batch file?

You can only do it with regetit.exe, and plus if you are asking to change it with a batch file ... trying to make a virus?


Where are notepad files I can't find them in my computer file system?

Notepad files aren't something that just pop up on your system. You have to make them through the program called Notepad, which can be found at Start>All Programs>Accessories>Notepad. Once you have made the notepad document, you can save it somewhere on the computer, and then it is an editable Notepad file.


How do you get a full screen batch file on windows vista?

You can't make the batch file automatically open up in fullscreen mode, but you can do this: @echo off mode 800 "Commands here" This will open the batch file in a rather larger-than-normal window, but it will not be in fullscreen, the user of the batch file must click the maximize button to make it fullscreen.


How do you make a hypertext file?

Go to Notepad, enter HTML, and save the file with an extension of either .htm or .html.


How To create Directory Using Batch File?

You can make a folder with batch by using the command: md Foldername Example: @echo off md WikiAnswers exit The batch file would make a folder named WikiAnswers, and it would appear on your desktop


How do you get a batch file to delete a directory when it says Acess is Denied?

If it says access is denied that means that access is deined, you can't delete it. I think you are probably trying to make a batch file virus to delete system files and is trying to make the batch file delete everything, but came into the access is deined problem.


How do you make a fake progress bar on a batch file?

You can just use the echo command to construct a loading bar out of words and symbols, then use a cls + goto command and then loop it so it will inch forward every frame.