About 55 results
Open links in new tab
  1. 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 run, even …

  2. 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 do I let my

  3. Запуск программ c использованием BAT файл

    Dec 28, 2024 · такая ситуация Хочу что бы при запуска BAT файла закрывалась определённая программа и запускалась игра из библиотеки Steam, и при закрытии игры закрытая программа …

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

    Jan 26, 2010 · Note that this answer is tailored toward cmd batch language, the one found in Windows. You mention "DOS batch" but, based on several points, I think the former choice is a safe bet (1). If …

  5. Why does "cd" on Windows Command Line not change drives?

    As on first solution there is no return to current script if this is a *.bat or *.cmd file and changing the directory and continuation of batch processing on Template.bat is successful. 4. Change directory …

  6. How to call a Windows batch file from another one or from prompt?

    Mar 27, 2026 · The batch file will be executed by the current cmd.exe instance (or a new cmd.exe instance if, for instance, double-clicked in Explorer). Same as #1, only has an effect when used …

  7. windows - How can I debug a .BAT script? - Stack Overflow

    Oct 3, 2008 · Like whatever.bat >log.txt You have to make sure that in this case, every other called script is also logging to the file like >>log.txt Also, if you put a date /T and time /T in the beginning …

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

    Open a folder with File explorer using .bat Asked 12 years, 5 months ago Modified 4 years, 3 months ago Viewed 191k times

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

    Jan 13, 2014 · Nothing to add to the ismail answer. But just for future references, the answer is included in the indicated "Command-line reference A-Z" documentation under the Remarks section of the …

  10. .bat file to create local user and set password to never expire

    Jan 27, 2023 · I'm trying to create a .bat file that can add a local (non-admin) account and sets the password to never expire. However, when I run it, I don't see the account show up in Computer …