About 13,800,000 results
Open links in new tab
  1. 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?

  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 …

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

  4. How can I pass arguments to a batch file? - Stack Overflow

    I need to pass an ID and a password to a batch file at the time of running rather than hardcoding them into the file. Here's what the command line looks like: test.cmd admin P@55w0rd > …

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

    I ran it from the command line. Would it do something different from within a batch file? Where it comes from? a clarification about one ampersand & "Use to separate multiple commands on …

  6. How to automatically close cmd window after batch file execution ...

    Feb 5, 2013 · This batch file is used to run the Xming application and then the PuTTY app so I can SSH into my university's computer lab. However, if I run this and Xming is not already …

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

    Jan 13, 2014 · This is a (possibly common) pattern for Windows exe command-line options. armclang.exe supports this command-line option @<file> Read command-line options from …

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

  9. batch file - What does %~dp0 mean, and how does it work

    Feb 18, 2011 · The variable %0 in a batch script is set to the name of the executing batch file. The ~dp special syntax between the % and the 0 basically says to expand the variable %0 to show …

  10. How to do something to each file in a directory with a batch script

    Apr 18, 2016 · How do you iterate over each file in a directory with a .bat or .cmd file? For simplicity please provide an answer that just echoes the filename or file path.