What does :launchapp mean in this bat file

Posted on 2012-08-29
Last Modified: 2012-08-29
I have the below which does work.  However, I simply copied from another bat file and while I understand most, what does the line at the bottom :launchapp mean?

@ECHO Starting LMR_FE...

REM --- SET LOCAL_PATH="C:\Documents and Settings\All Users\Application Data\SOS\LMR"
SET SERVER_PATH="\\sf1\user1\shared\DepositServices\CIA\SOS_APPLICATIONS\Database_FrontEnds"

REM --- Create Directory ---
if not exist %LOCAL_PATH%\ (mkdir %LOCAL_PATH%)
goto copy_app_file

REM --- Copy File whether it exists or not, ensures most recent version  ---
REM --- DO NOT USE THe d/ switch, it only works if a date is supplied
REM --- otherwise it does not copy a new version, simply leave it off
goto copy_images

REM if not exist "%LOCAL_PATH%\Images" (mkdir %LOCAL_PATH%\Images)
REM xcopy /y/c/q %SERVER_PATH%\Images\*.* %LOCAL_PATH%\Images
REM xcopy /y/c/q %SERVER_PATH%\systray.ico %LOCAL_PATH%\
goto launchapp

:launchapp   ?WHAT DOES THIS MEAN?

Question by:ssmith94015
    LVL 12

    Expert Comment

    It is a comment.  Whoever wrote the batch file put it there to let you know what the next section of code will be doing.  In this case it will be launching an app.

    Here are some more details:
    LVL 33

    Accepted Solution

    It's not a comment, it's the equivalent of a subroutine name.  You can see the "goto launchapp" command just above it.
    LVL 12

    Assisted Solution

    Well, technically it is a label, which is basically the same as a comment, except you can use the GOTO command to skip to a label in a batch file.  His question was, "What does :launchapp mean?"  In this batch file, :launchapp servers as a label/comment.  The batch file would already go to the ":launchapp" section from the previous section even without the GOTO command.  The GOTO commands in this particular batch file aren't even necessary.
    LVL 74

    Assisted Solution

    by:käµfm³d 👽
    I agree with the distinction between comment and label. A label implies a programmatic jump in the logic; a comment implies metadata. While I agree that in this case the labels (and gotos) really aren't functioning in that design, I think it would be better to treat them as they are.

    Author Closing Comment

    Got it and its functionality.  I was thinking it was a command or action of some sort, but a label/comment I understand in conjunction with the GoTo command.  In this case, it is a label and not a comment.  Which actually leads to another question, which I will post.  The START command


    What function does putting the "LMR" in the line do?

    Again, this will be another question for points.

    Featured Post

    What Is Threat Intelligence?

    Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

    Join & Write a Comment

    A theme is a collection of property settings that allow you to define the look of pages and controls, and then apply the look consistently across pages in an application. Themes can be made up of a set of elements: skins, style sheets, images, and o…
    Technology opened people to different means of presenting information, but PowerPoint remains to be above competition. Know why PPT still works today.
    Viewers will learn the different options available in the Backstage view in Excel 2013.
    The viewer will learn how to simulate a series of coin tosses with the rand() function and learn how to make these “tosses” depend on a predetermined probability. Flipping Coins in Excel: Enter =RAND() into cell A2: Recalculate the random variable…

    728 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

    Need Help in Real-Time?

    Connect with top rated Experts

    20 Experts available now in Live!

    Get 1:1 Help Now