Results 1 to 5 of 5

Thread: How to create blank line in batch file

  1. #1
    Join Date
    Dec 2009
    Posts
    42

    How to create blank line in batch file

    My dell desktop is installed with windows XP. I am creating a batch file for some reason and i am not able to insert a blank line in the batch file but i am not able to do this. so please help me to create a blank line in the batch file so that the text appears separated to some extent. i would appreciate your help.

  2. #2
    Join Date
    Oct 2005
    Posts
    2,394

    Re: How to create blank line in batch file

    Try to use the echo command in order to add a space in the batch file. The batch will not display a space t will simply display the text echo is on or echo is off. If you really want to display a line type echo and a period using no spaces in between them. This should help you to solve this problem.

  3. #3
    Join Date
    May 2008
    Posts
    2,393

    Re: How to create blank line in batch file

    I think that you will have to add a dot (.) or period after the echo command in your batch file code , for instance see the command which i have mentioned below instead of inserting the echo command by simply typing echo you will have to type. The echo command with a dot will definitely create a blank line echo.

  4. #4
    Join Date
    Feb 2008
    Posts
    1,856

    Re: How to create blank line in batch file

    Insert echo off at the beginning and the dot "." will not be displayed i have provided the an example how to use that so try to use it for your reference.

    echo off
    echo blank lines below then pause.
    echo.
    echo.
    pause

    Hope you got the trick.

  5. #5
    Join Date
    Apr 2008
    Posts
    2,010

    Re: How to create blank line in batch file

    If you want to insert a line in your batch file then you need to add a dot right after the echo command. Like i have shown below

    echo.

    You can also try to insert the blank line by inserting a character by pressing ALT+255 in your batch file. But i would recommend you to use 'echo.' Since this is standard and it will work in all versions of MS-DOS and Windows.

Similar Threads

  1. I want to create a TCP/IP Batch file
    By aladdin in forum Software Development
    Replies: 1
    Last Post: 14-02-2012, 10:59 PM
  2. Help me create this batch file.
    By bomblast in forum Windows Software
    Replies: 1
    Last Post: 31-10-2011, 10:47 AM
  3. How to create batch for RAR file extension
    By Jayden in forum Windows Software
    Replies: 1
    Last Post: 13-04-2009, 11:58 PM
  4. How to create a Batch file
    By Katty in forum Software Development
    Replies: 1
    Last Post: 10-01-2009, 12:26 PM
  5. Replies: 1
    Last Post: 18-03-2007, 12:22 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •