Link to home
Start Free TrialLog in
Avatar of tedpenner
tedpenner

asked on

REM Line More defined

I am writing a batch file and don't like the REM line set out from the path name.  I would like the REM line to be more like a Title or Explaination of a Process so that it is real clear to the user what it is doing.  How can I accomplish this?
Avatar of Stekman99
Stekman99

Here is a good rescource:
http://labmice.techtarget.com/articles/batchcmds.htm

Show me what you have and what you really want to do I will try help you.

Cheers,
Stefan
Avatar of cj_1969
Can you provide an example of what you are referring to?

I use REM lines to comment my code all the time.

I usually start them with ...
REM ***

for ease of reading I also usually enter them all in caps ... makes them stand out more amounst the code

For a title, you can make a box ...
REM ***********************************************
REM ***                                                                                  ***
REM ***                   TITLE GOES HERE                                     ***
REM ***                                                                                  ***
REM ***********************************************

Get ceative  :)

Let me know if you want something more specific.
ASKER CERTIFIED SOLUTION
Avatar of Eagle6990
Eagle6990
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of tedpenner

ASKER

Now that's what I was after!

Ok now using echo, suppose I want to hide other parts of the script.  Can I selectively hide other items that would appear in the DOS window when the user runs the script?

On another note:
Scanstate and Loadstate have a cool feature whereby you get a cute litle turning icon (much like an hourglass) as the script progresses.  You also get a message that says 3 minutes remaining or whatever that appears to be accurate.  I would like to show those items.
Yep, just turn echo off and on as needed.
http://www.ss64.com/nt/echo.html
Start your batch file with
@Echo Off

This will stop the displaying of the commands as the execute.
Then when you put in a specific echo statement it will be displayed in the command window.

So ...

@echo off
set var1=value1
set var2=value2
Echo.
Echo This is a test display line.
Echo.
Echo The word echo with a period after it forces a blank line
Echo.