About 1,120,000 results
Open links in new tab
  1. windows - How to set command's output as a variable in a batch …

    Jun 15, 2011 · None of the answers seems to work for me. My command is "openssl dgst -sha384 -binary %1% | openssl base64 -A" and I wish the string output to be stored in a variable in a …

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

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

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

  5. Batch file to delete files older than N days - Stack Overflow

    Sep 9, 2008 · For even more information about date and time formats and file time comparisons on Windows see my answer on Find out if file is older than 4 hours in batch file with lots of …

  6. How can I echo a newline in a batch file? - Stack Overflow

    Sep 25, 2008 · More explanations are at SO:Long commands split over multiple lines in Vista/DOS batch (.bat) file SO:How does the Windows Command Interpreter (CMD.EXE) …

  7. windows - BAT file to map to network drive without running as …

    May 8, 2014 · I'm trying to create a .bat file that will map to a network drive when it is clicked (it would be even better if it could connect automatically on login if connected to the network, …

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

  9. How to code a BAT file to always run as admin mode?

    Mar 23, 2017 · This does not work for me on either Windows 10 or Windows 7. When I try to run as Administrator, either by right clicking the BAT file and "Run as Administrator", or using the …

  10. Using parameters in batch files at Windows command line

    In Windows, how do you access arguments passed when a batch file is run? For example, let's say I have a program named hello.bat. When I enter hello -a at a Windows command line, how …