Batchfile: Using "start" Command to Start a batch file on a specific label

JEFFDOG

Inside this batch files, exist over 25 lables, each for different purposes..

Specifically the label called ":beep" which make a beep noise in the computer.

I wanted to scheduling the start of this batch file, but only the label "beep", or maybe another batch, but only starting with the label "beep".

I have already used the "call command", which is not what I need.

Is there anybody who knows how to use "Start" command to run a batch file on a specific label?

Example:

start C:\interface.cmd [goto beep]

Scott C

OK, so if there are no other parameters, just pass beep as a parameter e.g. batchfile beep and have a line goto %1

If there are other parameters you need to pass, time to get more creative. Have the start of your bat file, something like:

@echo off
setlocal
set p1=%1
if x%p1:~0,1% equ x: (
    shift
    goto %p1%
)

Then you can run: batchfile :beep "as many" other "params as you like"

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

"start" command in .bat batch file

From Dev

Batch file "start" command and parameters

From Dev

Windows start command not able to execute batch file

From Dev

"Start" command not working while running a batch file

From Dev

Escaping commas in batch file START command?

From Dev

Start another batch file with multiple parameters with the start command?

From Dev

Output redirection in batch while using start command

From Dev

using a batch file to run a ps1 file but hide the command prompt after start?

From Dev

Why does a program started by a batch file using command start not run while it runs via Windows Explorer?

From Dev

Using start command to open new window with /V:ON enabled and also run a batch file

From Dev

Continue Batch File even if path/target used in START command is wrong

From Dev

Continue Batch File even if path/target used in START command is wrong

From Dev

Keep a batch-file after the "start" command is used

From Dev

End a process started with START command in a Windows Batch File

From Dev

Batch File to start .exe when a specific number of files is in monitored folder

From Dev

How could I start/display a file in lua, like the batch command "start"?

From Dev

Using "podman start" with a command?

From Dev

Start Windows batch file maximized

From Dev

Using batch file to start VS C# Project with params

From Dev

Using batch file to start VS C# Project with params

From Dev

Using PowerShell to start batch file for secure wipe USB drive

From Dev

Start kubernetes container with specific command

From Dev

Start a song from a specific time in rhythmbox using command line

From Dev

How to direct to file folder and execute specific file using batch command

From Dev

Side-effect of using `start` for launching a process in a Windows batchfile using double quotes

From Dev

batch start path\this file's file name

From Dev

A grep (or sed, or awk) command to select all lines that follow a specific pattern after a specific start line in a file

From Dev

How I can I start a powershell command line from a batch file and enforce it to stay open?

From Dev

Batch file to start all programmes in the start folder of XP

Related Related

  1. 1

    "start" command in .bat batch file

  2. 2

    Batch file "start" command and parameters

  3. 3

    Windows start command not able to execute batch file

  4. 4

    "Start" command not working while running a batch file

  5. 5

    Escaping commas in batch file START command?

  6. 6

    Start another batch file with multiple parameters with the start command?

  7. 7

    Output redirection in batch while using start command

  8. 8

    using a batch file to run a ps1 file but hide the command prompt after start?

  9. 9

    Why does a program started by a batch file using command start not run while it runs via Windows Explorer?

  10. 10

    Using start command to open new window with /V:ON enabled and also run a batch file

  11. 11

    Continue Batch File even if path/target used in START command is wrong

  12. 12

    Continue Batch File even if path/target used in START command is wrong

  13. 13

    Keep a batch-file after the "start" command is used

  14. 14

    End a process started with START command in a Windows Batch File

  15. 15

    Batch File to start .exe when a specific number of files is in monitored folder

  16. 16

    How could I start/display a file in lua, like the batch command "start"?

  17. 17

    Using "podman start" with a command?

  18. 18

    Start Windows batch file maximized

  19. 19

    Using batch file to start VS C# Project with params

  20. 20

    Using batch file to start VS C# Project with params

  21. 21

    Using PowerShell to start batch file for secure wipe USB drive

  22. 22

    Start kubernetes container with specific command

  23. 23

    Start a song from a specific time in rhythmbox using command line

  24. 24

    How to direct to file folder and execute specific file using batch command

  25. 25

    Side-effect of using `start` for launching a process in a Windows batchfile using double quotes

  26. 26

    batch start path\this file's file name

  27. 27

    A grep (or sed, or awk) command to select all lines that follow a specific pattern after a specific start line in a file

  28. 28

    How I can I start a powershell command line from a batch file and enforce it to stay open?

  29. 29

    Batch file to start all programmes in the start folder of XP

HotTag

Archive