It displays or echos each line of the batch file to the output window before executing it.
rem is a comment that is only seen if you edit the batch echo actually is printed when the batch is running
sample of prompt in batch file: echo. echo prompt jade $p$g echo. pause
It jumps to the line after the indicated label. For example, this batch... @ECHO OFF ECHO apple GOTO BANANA ECHO sauce :BANANA ECHO ice cream ... would generate the following output: apple ice cream
A period right after the "echo" command would echo an empty line.
Simply type echo %variablename%
Here is an example of a batch file that carries out the command ipconfig. @echo off ipconfig /all pause exit
While there are many uses for the period character in a batch script, the most common would be... - The current directory. - New line when used with the ECHO command. Example: ECHO. - The character which separates the extension from the filename. Example: Filename.Ext
echo $PATH
Here's the code: @echo off copy "Location of Batch File" "Location to copy file into" exit
1. Click on the Start Menu 2. Click on the Run command 3. Type in: cmd 4. Type in: help This should help you a lot with commands. Use: help <command> for details on a certain command. Example: help echo Use the echo command to make the batch file talk. Example is: @echo echo "This is what they will see" Make sure to include the ""s.
Platform dependent. Example for linux: for i in 1 2 3; do echo "i=$i" done
ok, open notepad, now type in: @echo off pause (your executions) pause echo ALL DONE pause Now save it as alldone.bat on ur desktop. It does your execution, then you hit any key to continue, and it says "ALL DONE" how cool is that? That works but you could also use the call command to use it. Example first make a batch file to display all done @echo off Titile all done echo All done! Pause>null exit Once that is finished save it in the same directory as the file that you want to call it and then ad a new text line to your batch file Example @echo off call Alldone.bat - If you would like to clear the screen of any text first you could use CLS before the ECHO and PAUSE commands. Also if you want to only see "All Done", you should include ">nul" at the end of the pause command. Example: @echo off Echo Copying files... Echo Copy done. CLS Echo All Done Pause>nul The above example would have an end result of just displaying "All Done" at the top of the screen and will wait for you to press any key in order to end the batch script. - There are more advanced methods for determining if a command completed successfully and based on the result you could indicate to the user if it all got done correctly or if there were any problems. With the above example, you would not know for sure if it did it's job and the user would only have to assume it did. If you want more info on this, look up information on "Exit Codes".