About 9,460,000 results
Open links in new tab
  1. Batch not-equal (inequality) operator - Stack Overflow

    It's the same as 'if "%1" == "" goto somewhere', except that will fail in batch files, because "" evaluates to nothing and the whole sentence reduces to 'if %1 == goto somewhere'. I prefer X, since ! makes you …

  2. 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 …

  3. cmd - What does "&&" do in this batch file? - Stack Overflow

    75 I received a line of code from someone who answered one of my questions, but I am confused: what do the "&&" do in this batch file.

  4. 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. …

  5. How do you loop in a Windows batch file? - Stack Overflow

    Aug 31, 2009 · FOR %%A IN (list) DO command parameters list is a list of any elements, separated by either spaces, commas or semicolons. command can be any internal or external command, batch file …

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

    this seems to be same as setting the environment-variable in windows. Is this the only way of using local-variables in batch scripts?

  7. 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 …

  8. Iterate all files in a directory using a 'for' loop

    How can I iterate over each file in a directory using a for loop? And how could I tell if a certain entry is a directory or if it's just a file?

  9. What are "%1" and "%2" in batch files? - Stack Overflow

    Feb 22, 2010 · Running shift once in a batch file will make "%1" value to be the second argument, "%2" becomes the third, and so on. It's useful for processing command line arguments in a loop in the …

  10. How do I get the result of a command in a variable in windows?

    Sep 20, 2008 · I'm looking to get the result of a command as a variable in a Windows batch script (see how to get the result of a command in bash for the bash scripting equivalent). A solution that will …