Microsoft Windows XP Professional Logo

Related Topics:

Posted on Nov 18, 2010

Hi I need to display the caret character in DOS with the echo command. When I type echo ^, it only shows blank. Can help ? Thanks

1 Answer

Satyendra Naik

Level 1:

An expert who has achieved level 1.

MVP:

An expert that got 5 achievements.

New Friend:

An expert that has 1 follower.

Hot-Shot:

An expert who has answered 20 questions.

  • Contributor 29 Answers
  • Posted on Nov 18, 2010
Satyendra Naik
Contributor
Level 1:

An expert who has achieved level 1.

MVP:

An expert that got 5 achievements.

New Friend:

An expert that has 1 follower.

Hot-Shot:

An expert who has answered 20 questions.

Joined: Oct 24, 2010
Answers
29
Questions
0
Helped
6097
Points
86

You need to type it twice - for a single caret. typing three carets will prompt "more?" and you have to answer Yes or No.

try
echo ^^ for single caret
echo ^^^^ for double caret and so on

Add Your Answer

×

Uploading: 0%

my-video-file.mp4

Complete. Click "Add" to insert your video. Add

×

Loading...
Loading...

Related Questions:

2helpful
1answer

What is ms dos command prompt

MS-DOS stands for Microsoft Disk Operating system. Its has CUI(Character User Interface) unlike Widows which has GUI(Graphical User Interface)
Which means you need to type commands in MSDOS. In windows we see icons, folder etc to work using mouse but MSDos is different.
To open MSDOS
Click Start goto Run - Type CMD and press Enter (for Windows XP) Click Start - Type CMD in search - Click on CMD (For Windows Vista and 7)
0helpful
1answer

Occasionally a user reports that characters being typed do not appear on screen. Smarterm v12.1 configured as Digital VT session. Reboot of workstation fixes problem. Is there some sequence of keys user...

If "echo" is running, the terminal echoes what is being sent to the server. However, if "backslash" mode is enabled ("echo -e"), then the command "\c" tells echo "produce no further output." Try "\c" to see if that will toggle the command. If not, try "\C" or "\e" (escape). "echo -E" turns off the backslash mode entirely.
1helpful
3answers

How to create simple batch files

Creating a batch file
MS-DOS users
Microsoft Windows and other users

MS-DOS users
To create a basic batch file in MS-DOS, follow the below steps that give you an example of how to create a basic batch file.

  1. Open an MS-DOS command window or get to MS-DOS. Additional information about doing this can be found on document CHDOS.
  2. At the MS-DOS prompt, type: edit test.bat and press enter.
  3. If typed properly, you should now be in a blue screen. Within the screen, type:

    pause
    dir c:\windows
    dir c:\windows\system

  4. Once the above three lines have been typed in, click File and choose exit; when prompted to save, click "Yes." Users who do not have a mouse cursor can accomplish this same task by pressing ALT+F to access the file menu, then pressing "X" to exit, and pressing enter to save changes.
  5. Once you are back at the MS-DOS prompt, type: test and press enter. This will execute the test.bat file and begin running the file. Because the first line is pause, you will first be prompted to press a key. Once you press a key the batch file will run line-by-line; in this case, listing the files in the windows and windows\system directories.
If you wish to add more lines to this batch file you would simply type "edit test.bat" to edit the file again.
Additional information about the MS-DOS edit command can be found on our edit command page. Some versions of MS-DOS and bootable diskettes may not have the edit command; if this is the case, you would either need to obtain the edit.com file to access this file or use the copy con command.




Microsoft Windows and other users
A Windows user can still use the above MS-DOS steps if they wish to create a batch file. If, however, you're more comfortable using Microsoft Windows or your operating system, you can use any text editor, such as Notepad or Wordpad, to create your batch files, as long as the file extension ends with .bat. In the below example we use the Windows notepad to create a batch file.
  1. Click Start
  2. Click Run
  3. Type: notepad and press enter.
  4. Once notepad is open, type the below lines in the file or copy and paste the below lines into notepad.

    @echo off
    echo Hello this is a test batch file
    pause
    dir c:\windows

  5. Click File and click Save; browse to where you want to save the file. For the file name, type "test.bat", and if your version of Windows has a "Save as type" option, choose "All files", otherwise it will save as a text file. Once all of this has been done click the Save button and exit notepad.
  6. Now, to run the batch file, simply double-click or run the file like any other program. Once the batch file has completed running it will close the window automatically.
0helpful
1answer

When i move a file to a folder it comes file intigrity violated what to do

hi there,

Cause:
These symptoms may indicate that you have cross-linked files or lost clusters (or allocation units).

Running the MS-DOS CHKDSK utility (CHKDSK.COM) can identify these problems and, optionally, correct them. The following is the correct syntax for running the CHKDSK command CHKDSK [<drive>:] [<pathname>] [/F] [/V] where:

  • <drive> specifies the drive is to be analyzed.
  • <pathname> allows the specification of a particular directory and file type using wildcard characters.
  • /F tells MS-DOS to repair any errors found.
  • /V echoes the filename(s) as they are being checked.
The parameters enclosed in brackets ([]) are optional. If you use these parameters, type them without the brackets.

Parameters enclosed in angle brackets (<>) are variables. Substitute actual values for these variables. For example, substitute C: for: <drive>: WARNING: Before using CHKDSK, exit Windows. You should NEVER run this utility with the /F parameter from Windows; doing so corrupts files on the hard disk.
0helpful
1answer

What is the mean auto exe c bat in dos files??

An AUTOEXEC.BAT file contains MS-DOS commands which are executed automatically when a Personal Computer boots. This file is usually located in the root directory of the hard drive or floppy from which the computer boots (or starts) up. The AUTOEXEC.BAT file is used to set various default settings and to run programs that should be executed upon startup. Below you will find a list of executable statements (commands) that typically go into an AUTOEXEC.BAT file, along with explanations their.


The AUTOEXEC.BAT file is one form of a batch file, and it is used to automate functions in MS-DOS. In their simplest form, batch files contain MS-DOS commands (batch file language) which includes commands for such things as loops and execution branches and the like.
ECHO
Example: @ECHO OFF
This optional command will suppress the display of subsequent commands while the AUTOEXEC.BAT file is being executed
0helpful
1answer

How do I restore factory settings to a zebra barcode printer LP-2844-Z

The ^default command has been added to the EPL2 commands, starting in firmware version 4.39. This command will set the printer back to factory settings as long as the printer is in page mode. The command is not supported in line mode at this time. The command is case sensitive.
Syntax: ^default.
You can send the command to the printer via the parallel or serial port.
Parallel:
Open command prompt (DOS prompt) See windows instructions for details.
At the prompt type:
ECHO ^default>LPT1 <enter>
Serial:
Assuming standard communications on the printer of Baud 9600, No parity, 8 bits, 1 stop bit and use of COM 1:
At the prompt type:
Mode Com1:9600,n,8,1 <enter>
ECHO ^default>COM1 <enter>
0helpful
1answer

Using hyperterminal at commands

you may contact the service provider........
0helpful
1answer

How to change the density of the printer HP LaserJet 5p

I'm afraid this won't be of much help to the original poster, who asked the question a year ago, but anyway - others may be looking for this too, just like I did...

To change the print density, a simple command must be sent to the printer. This is done in two steps:
  1. Create a file, containing the command
  2. Send it to the printer ("copy" it to the printer, in a DOS shell)
The command is:
<ESC>%-12345X@PJL DEFAULT DENSITY=4
where <ESC> represents the "Escape" character (character code 27). There are several ways to generate the Escape character (which cannot be directly entered in a text editor): E.g. substitute the character with any other, save the command and then replace the first character with 0x1b using a hex editor.

Or:
  • Open a DOS window
  • Enter:
    copy con density.txt <Enter>
  • Hold the <Alt> key
  • type 27 on the numeric keypad
  • Release the <Alt> key - the Esc. char. is shown as ^[
  • Type the rest of the command (e.g. %-12345X@PJL DEFAULT DENSITY=4) - adjust the density value to the one you actually want to set.
  • press <Enter> <ctrl-Z> <Enter> to write the file
When you have successfully created the command file, send it to the printer. In the DOS window, enter:
copy density.txt LPT1
(assuming that your printer is connected to LPT1)

That's it!
To verify that the density has actually been set, print a printer status page.
The printer remembers this setting, so this needs to be done only once.

0helpful
1answer

Cash Drawer Command

The cashdrawer is SERIAL, you'll need to connect it to a COM port. The
software you're using has to be capable of sending data to the COM port
the cashdrawer is connected to when the cashdrawer needs to be opened.
From the site you mentioned:

Be sure drawer lock is not engaged.
Exit your system to a DOS prompt. Type the following commands (substitute
the correct com port for com1):
c:\>mode com1:300,n,8,1
c:\>echo "000000000000000000000">com1
The cash drawer should open.

About the cashdrawer RJ11 connection on the printer: You can connect any
solenoid driven cashdrawer to this port. The port uses pin 2 and 4 for
the voltage output, which is normally 24V on Epson receipt printers.
Sending a specific ESC character (every POS software should be capable of
doing this) to the printer will be recognized by the printer and the
printer puts 24V on the 2 pins mentioned for 300ms and voila, the drawer
opens.
2helpful
2answers

Run dos command through vb 6.0 without showing it

visual basic, on windows, right? jumping to dos, implies a command line, no? how else would you access a command line interface, if not through cmd?
Not finding what you are looking for?

188 views

Ask a Question

Usually answered in minutes!

Top Microsoft Computers & Internet Experts

Grand Canyon Tech
Grand Canyon Tech

Level 3 Expert

3867 Answers

k24674

Level 3 Expert

8093 Answers

Brad Brown

Level 3 Expert

19187 Answers

Are you a Microsoft Computer and Internet Expert? Answer questions, earn points and help others

Answer questions

Manuals & User Guides

Loading...