About 5,830,000 results
Open links in new tab
  1. Using parameters in batch files at Windows command line

    parameters passed in on the commandline must be alphanumeric characters and delimited by spaces. Since %0 is the program name as it was called, in DOS %0 will be empty for …

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

    Jan 26, 2010 · BAT is enough most of the time. 90% of the unix shell scripts ppl write is not pure shell but with many coreutils, sed, awk etc calls. GNU have implemented UNIX goodies in …

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

  4. Open a folder with File explorer using .bat - Stack Overflow

    Nov 25, 2013 · Save as: filename.BAT. Edit: Some people have reported a string after the START keyword, wrapping the path inside double quotes is better as the path can have files/folder …

  5. Windows batch files: .bat vs .cmd? - Stack Overflow

    Sep 29, 2008 · If both .bat and .cmd versions of a script (test.bat, test.cmd) are in the same folder and you run the script without the extension (test), by default the .bat version of the script will …

  6. windows - How to ftp with a batch file? - Stack Overflow

    Apr 23, 2013 · Each line of a batch file will get executed; but only after the previous line has completed. In your case, as soon as it hits the ftp line the ftp program will start and take over …

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

    Nov 12, 2010 · 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 named …

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

    Yeah, I usually use 'if X%1 == X goto somewhere' to check if the script has no arguments. It's the same as 'if "%1" == "" goto somewhere', except that will fail in batch files, because "" …

  9. How to run a PowerShell script from a batch file

    Note that if you get wacky errors executing like this for scripts that work when the script is invoked from within PowerShell, you might need to use pwsh.exe in your bat file instead of …

  10. Batch file to perform start, run, %TEMP% and delete all

    May 23, 2012 · looking for a way to perform the following: Start > Run > "%TEMP% > Delete everything (skipping any conflicts). so Far I have @echo off start %TEMP% DEL *.* I suppose …

Refresh