About 50 results
Open links in new tab
  1. What is the at sign (@) in a batch file and what does it do?

    Jan 13, 2014 · For many-many days, I was happy with the sentiment that the @ is how echo off is meant to be written at the top of the batch and that's it. However, recently I've came accross a line like this: …

  2. command line - What does the percent sign (% and %%) in a batch file ...

    1 It's a variable. That particular example uses the directory option of a FOR loop, iterating through the directories and assigning them to %%A. That's also not a command-line example, but a batch file …

  3. Logical operators ("and", "or") in Windows batch - Stack Overflow

    Jan 26, 2010 · How would you implement logical operators in Windows batch files?

  4. windows - What does %* mean in a batch file? - Stack Overflow

    Apr 22, 2013 · I have seen the usage of %* in batch files and command lines. Can someone explain the typical usage of %* with an example?

  5. Using parameters in batch files at Windows command line

    Using parameters in batch files: %0 and %9 Batch files can refer to the words passed in as parameters with the tokens: %0 to %9. %0 is the program name as it was called. %1 is the first command line …

  6. How to call a Windows batch file from another one or from prompt?

    Mar 27, 2026 · The batch file will be executed by the current cmd.exe instance (or a new cmd.exe instance if, for instance, double-clicked in Explorer). Same as #1, only has an effect when used …

  7. Batch file to delete files older than N days - Stack Overflow

    Sep 9, 2008 · Here is the batch code with explaining comments which just outputs which file to delete and which file to keep in C:\Temp folder tree, see code of first FOR loop.

  8. batch file - whats the difference between: %%a and %variable

    Jun 24, 2016 · Variables of the form %%a (or %a if for is used outside of batch files) are very similar to arguments to batch files and subroutines (%1, %2, ...). Some kinds of expansions can be applied to …

  9. How to "comment-out" (add comment) in a batch/cmd?

    I have a batch file that runs several python scripts that do table modifications. I want to have users comment out the 1-2 python scripts that they don't want to run, rather than removing them fr...

  10. Batch not-equal (inequality) operator - Stack Overflow

    The solution using IF NOT == seems the most sound approach. I can't immediately think of a circumstance in which the evaluation of operations in a batch file would cause an issue or …