Re: Loop example in cmd window

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: Jerold Schulman (Jerry_at_jsiinc.com)
Date: 06/07/04

  • Next message: djc: "Re: batch file to delete files based on criteria"
    Date: Mon, 07 Jun 2004 08:52:00 -0400
    
    

    On Mon, 7 Jun 2004 04:07:23 -0700, "Vanessa Berger" <vanessa3434ss34@yahoo.com>
    wrote:

    >Hi,
    >
    >Can anyone send me an example of a loop in command prompt?
    >I need to execute a command called batch.exe many times, and would like to
    >do it in a loop.
    >
    >Thank you,
    >Vanessa
    >

    :loop
    batch.exe
    if "%some_variable%" EQU "Some_value" goto loop

    Jerold Schulman
    Windows: General MVP
    JSI, Inc.
    http://www.jsiinc.com


  • Next message: djc: "Re: batch file to delete files based on criteria"

    Relevant Pages

    • Re: dsmove for loop ?
      ... separated by a comma to another OU. ... loop at the command prompt but I am not having any success. ...
      (microsoft.public.windows.server.active_directory)
    • Re: how to change a variable in loop when loop is running
      ... then when the loop is running you will sey ... K>> at the command prompt and you can enter i=10 or whatever. ... KEYBOARD or INPUT. ... must stop the MATLAB program and reassign the parameter. ...
      (comp.soft-sys.matlab)
    • Stuck in a loop
      ... screen with "safe mode, command prompt, your most recent settings that ... Can anyone tell me how to get past this loop and to my desktop? ...
      (microsoft.public.windowsxp.general)
    • Re: ntbackup Alerts
      ... Would you mind example the coding for me? ... The command "for" sets off a loop. ... will return the following when executed from a Command Prompt: ...
      (microsoft.public.windows.server.general)
    • Re: Stuck in a loop
      ... >When I boot up I get the screen with "safe mode, command prompt, your most ... It does not matter which option I choose from this menu, ... Can anyone tell me how to get past this loop and to my desktop? ...
      (microsoft.public.windowsxp.general)