About 10,900,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. 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 …

  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 …

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

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

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

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

  8. What does the percent sign (% and %%) in a batch file argument …

    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 …

  9. windows - Get current batchfile directory - Stack Overflow

    Jun 12, 2013 · System read-only variable %CD% keeps the path of the caller of the batch, not the batch file location. You can get the name of the batch script itself as typed by the user with %0 …

  10. Create folder with batch but only if it doesn't already exist

    Nov 12, 2010 · 614 Can anybody tell me how to do the following in in a Windows batch script? (*.bat): Create a folder only if it doesn't already exist In more detail, I want to create a folder …