About 50 results
Open links in new tab
  1. Windows batch files: .bat vs .cmd? - Stack Overflow

    Sep 29, 2008 · Windows NT inherited cmd from OS/2, but Windows NT's Win32 version started off 32-bit. Although OS/2 went 32-bit in 1992, its cmd remained a 16-bit OS/2 1.x program. The ComSpec …

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

  3. How to run .sh on Windows Command Prompt? - Stack Overflow

    Oct 23, 2014 · In other words, Windows parses your command line as app /build /build.sh (or, to paraphrase with Unix option conventions, app --build --build.sh). You could try app\build\build.sh but …

  4. cmd - How do you run a command as an administrator from the …

    May 10, 2011 · I'm trying to run the script with elevated, administrative privileges from within the Windows shell (cmd.exe)--just as if I'd right-clicked it and chosen Run as Administrator, but without …

  5. Split long commands in multiple lines through Windows batch file

    Sep 3, 2021 · How can I split long commands over multiple lines in a batch file?

  6. How can you zip or unzip from the script using ONLY Windows' built-in ...

    For anyone ending up down here, you can use powershell Compress-Archive -Path C:\SomeFile.ext -DestinationPath C:\SomeFile.zip right from command line without needing to make a script …

  7. How can you find and replace text in a file using the Windows …

    I am writing a batch file script using Windows command-line environment and want to change each occurrence of some text in a file (ex. "FOO") with another (ex. "BAR"). What is the simplest way to d...

  8. windows - How to run a PowerShell script - Stack Overflow

    250 If you want to run a script without modifying the default script execution policy, you can use the bypass switch when launching Windows PowerShell.

  9. How do I measure execution time of a command on the Windows …

    Mar 23, 2009 · Is there a built-in way to measure execution time of a command on the Windows command line?

  10. windows - How to create an executable command prompt script

    You can create a batch script to do this. It's basically command line commands that run one after another so you don't have to keep typing them in :) Put the commands you would normally use for …