Go Back   TechArena Community > Software > Software Development
Become a Member!
Forgot your username/password?
Register Tags Active Topics RSS Search Mark Forums Read

Sponsored Links



How to create blank line in batch file

Software Development


Reply
 
Thread Tools Search this Thread
  #1  
Old 27-03-2010
Member
 
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.

Reply With Quote
  #2  
Old 27-03-2010
Member
 
Join Date: Oct 2005
Posts: 2,389
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.
Reply With Quote
  #3  
Old 27-03-2010
Member
 
Join Date: May 2008
Posts: 2,382
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.
__________________
The FIFA Manager 2009 PC Game
Reply With Quote
  #4  
Old 27-03-2010
Member
 
Join Date: Feb 2008
Posts: 1,845
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.
Reply With Quote
  #5  
Old 27-03-2010
Member
 
Join Date: Apr 2008
Posts: 2,000
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.
Reply With Quote
Reply

  TechArena Community > Software > Software Development
Tags: , , , , , ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "How to create blank line in batch file"
Thread Thread Starter Forum Replies Last Post
I want to create a TCP/IP Batch file aladdin Software Development 1 14-02-2012 10:59 PM
Help me create this batch file. bomblast Windows Software 1 31-10-2011 10:47 AM
How to create batch for RAR file extension Jayden Windows Software 1 13-04-2009 11:58 PM
How to create a Batch file Katty Software Development 1 10-01-2009 12:26 PM
Fast User Switching via Command Line or Batch File? Woody45 Vista Help 1 18-03-2007 12:22 AM


All times are GMT +5.5. The time now is 12:30 AM.