?
Solved

What does the /par in a .bat file mean?

Posted on 2006-06-07
2
Medium Priority
?
2,002 Views
Last Modified: 2008-02-01

I am learning to do batch files, and came across this /par in my .bat file. I dont know really how it got there, as I was just manually creating the batch. I did just install easy batch creator, but I didnt use that prog. Anyway here is the code that I have in my batch, but I would just like to know what the /par means.

{\rtf1\ansi\ansicpg1252\deff0\deflang1033{\fonttbl{\f0\fswiss\fcharset0 Arial;}}
{\*\generator Msftedit 5.41.15.1503;}\viewkind4\uc1\pard\f0\fs20 ::Test Batch\par
::\par
@ECHO ON\par
\par
C:\par
CD \Program Files\EventLogExplorer\
elex.exe
pause\par
}

This is probably an easy question, but if you can tell me why or how all the extra "fluff" got put into the .bat I would greatly appreciate it, and will give some extra points.
0
Comment
Question by:cmoerbe
  • 2
2 Comments
 
LVL 10

Expert Comment

by:fostejo
ID: 16857105
cmoerbe,

Hi - the coding you've posted isn't a batch file as such - it looks like it used to be but it was then open up into an application and incorrectly save as a RTF (Rich Text Format)   The file is essentially damaged now as CMD/DOS won't be able to interpret it correctly.

I suspect it should look something similar to:

@ECHO ON
C:
CD \Program Files\EventLogExplorer\
elex.exe
pause

which basically changes to a folder called 'Program Files\EventLogExplorer', executes a file called 'elex.exe' and then waits for a keypress from the user.

However, to answer you question have a look at http://en.wikipedia.org/wiki/Rich_Text_Format which explains the RTF format

Hope that helps..
0
 
LVL 10

Accepted Solution

by:
fostejo earned 500 total points
ID: 16857126
ps. Just incase you don't want to wade through the above Wikipedia entry "\par" means essentially 'new line'

cheers
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Computer science students often experience many of the same frustrations when going through their engineering courses. This article presents seven tips I found useful when completing a bachelors and masters degree in computing which I believe may he…
In real business world data are crucial and sometimes data are shared among different information systems. Hence, an agreeable file transfer protocol need to be established.
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…
Screencast - Getting to Know the Pipeline

864 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question