About 20,600,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. 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 …

  3. Como declarar uma variável no .BAT ("shell")? [fechada]

    Oct 25, 2018 · O colega bfavaretto alertou para o fato de que talvez a dúvida fosse em relação a passar parâmetros para o arquivo .BAT, e que os parâmetros podem ser recuperados no …

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

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

    Mar 23, 2017 · The answers provided by both Kerrek SB and Ed Greaves will execute the target file under the admin user but, if the file is a Command script (.bat file) or VB script (.vbs file) …

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

    Jan 13, 2014 · @call \\network\folder\batch.bat This reinforced my suspicion that @ has more to it than just echo mode switching. However @ is not listed in the Windows XP: Command-line …

  7. IF, CALL, EXIT and %ERRORLEVEL% in a .bat - Stack Overflow

    Jul 21, 2014 · When the cmd parser reads a line or a block of lines (the code inside the parenthesis), all variable reads are replaced with the value inside the variable before starting …

  8. batch/bat to copy folder and content at once - Stack Overflow

    I'm writing a batch script that does a copy. I want to script it to copy an entire folder. When I want to copy a single file, I do this copy %~dp0file.txt file.txt If I have a folder with this

  9. How to get the path of the batch script in Windows?

    Jun 28, 2023 · Like mentioned above, %~dp0 will return the absolute drive and path of the current script. IMPORTANT NOTE: the implementation of %~dp0 is critically broken and will not work …

  10. windows - How to get date in BAT file - Stack Overflow

    Oct 2, 2013 · Locale-independent one liner to get any date format you like. I use it to generate archive names. Back quote (`) option is needed because PowerShell command line is using …