About 10,400,000 results
Open links in new tab
  1. What is the difference between % and %% in a cmd file?

    Jan 24, 2013 · In addition to %G in a for loop, %1 is also allowed. %% is needed in a script to avoid ambiguities. "When working at the command line (not in a batch script) there is no possibility of any …

  2. How to use if - else structure in a batch file? - Stack Overflow

    Jun 18, 2012 · I have a question about if - else structure in a batch file. Each command runs individually, but I couldn't use "if - else" blocks safely so these parts of my programme doesn't work. …

  3. What is the at sign (@) in a batch file and what does it do?

    Jan 13, 2014 · One remotely familiar with windows/dos batch scripting will recognize this line: @echo off For many-many days, I was happy with the sentiment that the @ is how echo off is meant to be …

  4. What is the meaning of tilde ~ in batch variables? - Super User

    Jul 16, 2020 · The tilde (~) sign is used in different ways in batch files: Argument quote removal. A tilde sign before an command-line argument (such as "%~1") indicates to remove the surrounding quotes …

  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. command line - String replacement in batch file - Stack Overflow

    We can replace strings in a batch file using the following command set str="jump over the chair" set str=%str:chair=table% These lines work fine and change the string "jump over the chair" to "jum...

  7. What is the Difference Between "/p," "/a," and "/i" in Batch?

    Jul 11, 2017 · I'm feeling quite dumb right now, as I'm attempting to code a big long program in batch, and I just discovered how little I actually know about the language. One thing I've seen in many …

  8. How to calculate optimal batch size? - Stack Overflow

    You might want also to consult several good posts here in Stack Exchange: Tradeoff batch size vs. number of iterations to train a neural network Selection of Mini-batch Size for Neural Network …

  9. Defining and using a variable in batch file - Stack Overflow

    Defining and using a variable in batch file Asked 13 years, 5 months ago Modified 7 months ago Viewed 1.3m times

  10. How to use random in BATCH script? - Stack Overflow

    Apr 25, 2011 · How to use random in BATCH script?Note that this will not be uniformly distributed! Taking the 0~99 example, the numbers 0~67 will occur slightly more often than the numbers 68~99 …