answersLogoWhite

0

The echo command is used to print a statement by default to the screen.

example:

echo Good Morning

output:

Good Morning

note: quotes are not used and will be displayed in the output if used

other examples:

echo off/on - turns echo on or off, otherwise commands are visible

on the screen. Useful for bat files.

@echo off - the @ hides the line it precedes so use this for the first line.

echo. - displays a blank line

echo text > myfile.txt - writes to target location (myfile.txt), overwiting it if it exists.

echo text >> myfile.txt - appends to the target (myfile.txt)

User Avatar

Wiki User

15y ago

What else can I help you with?

Related Questions

What is the DOS command for weekday and time?

In DOS, you can use the date command to display or set the current date, and the time command to display or set the current time. To see the current date and time along with the weekday, you can use the echo command combined with the %date% and %time% environment variables. For example, you can enter echo %date% %time% to display the current date and time.


What is dos command to display the user-name?

echo "%username%"


What symbol repeats the last MS-DOS command?

Look into the FOR command. To repeat a command 10 times, we want to use this specific variation of the FOR command: FOR /L %variable IN (start,step,end) DO command [command-parameters] Example: Do the echo command on the values (1-10). FOR /L %i IN (1,1,10) DO echo %i


How do I check if a registry value exist or not from a DOS batch file?

Get the Registry entry using regedit command. use the command from command prompt or copy that in a batch file and execute. Use errorlevel command to verify. hope this helps!! @echo off reg query RootKeyName\Path\To\Key\To\Query /v KeyName echo Does not Exist!!!!


What are the file commands of DOS?

Use the "dir" command (without the quotes) to see all files in the current directory. Use the "type" command (Just like before, no quotation marks.) followed by a file you want to look at to see the file's contents. Use the "echo" command (Okay, I think you get the point about the quotation marks now.) to print something to the screen. Not very useful. Is it? You can use the "echo" command to overwrite files too! For example, "echo Hello >> a.txt" will overwrite a.txt with the text "Hello." If a.txt does not exist, the echo command will create one.


What is dos command to display the user name?

just dispaly the environment variable : echo %USERNAME%


Which command we use to see MS-DOS version?

You can use "ver" command.


What is the command to get out of DOS and back to windows XP?

Use "exit" command..


Which command is used to displays the DOS version number?

You can use "ver" command.


Internal DOS commands and their meanings?

the deleted file if ms dos can be recovered if you use the command mention below immediately,the command is : need External Dos commands and internal dos commands with their meaning


How do you send greater-than bracket symbols to the screen in the dos batch file?

using the "echo ]" will disply the greater-than bracket on the screen. The echo command in general displays whatever text is typed after a space. The original question is: how to echo ">", not "]"!!! To display a pipe (|) or redirection character (, ^<, or ^| ). If you need to use the caret character (^), type two (^^).


How do you make a batch file that talks to you?

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.