batch-file 515

  1. How do I pass command line parameters to a batch file?
  2. What does %~dp0 mean, and how does it work?
  3. Windows batch files: .bat vs .cmd?
  4. Batch file to delete files older than N days
  5. How do I run two commands in one line in Windows CMD?
  6. How to “comment-out” (add comment) in a batch/cmd?
  7. Long commands split over multiple lines in Windows Vista batch (.bat) file
  8. How to sleep for 5 seconds in Windows's Command Prompt? (or DOS)
  9. How can you echo a newline in batch files?
  10. How to run multiple .BAT files within a .BAT file
  11. How do I get current datetime on the Windows command line, in a suitable format for using in a filename?
  12. How can you find and replace text in a file using the Windows command-line environment?
  13. How do I measure execution time of a command on the Windows command line?
  14. How to prevent auto-closing of console after the execution of batch file.
  15. How to check if a file exists from inside a batch file
  16. What is the current directory in a batch file?
  17. Get list of passed arguments in Windows batch script (.bat)
  18. Declaring and using a variable in Windows batch file (.BAT)
  19. Create folder with batch but only if it doesn't already exist
  20. Displaying Windows command prompt output and redirecting it to a file
  21. What does %~d0 mean in a Windows batch file?
  22. Iterate all files in a directory using a 'for' loop
  23. Stop and Start a service via batch or cmd file?
  24. Hidden features of Windows batch files
  25. In Windows cmd, how do I prompt for user input and use the result in another command?
  26. How do I make a batch file terminate upon encountering an error?
  27. How to do something to each file in a directory with a batch script
  28. Batch script: how to check for admin rights
  29. How to check if a process is running via a batch script
  30. How to get the path of the batch script in Windows?
  31. Quickly create large file on a windows system?
  32. How to delete files/subfolders in a specific directory at command prompt in Windows
  33. How to create empty text file from a batch file?
  34. Logical operators (“and”, “or”) in DOS batch
  35. Batch not-equal (inequality) operator
  36. Assign output of a program to a variable
  37. Which comment style should I use in batch files?
  38. Batch script loop
  39. Get current batchfile directory
  40. Batch file to copy files from one folder to another folder
  41. How can I auto-elevate my batch file, so that it requests from UAC administrator rights if required?
  42. How do you loop through each line in a text file using a windows batch file?
  43. What is the best way to do a substring in a batch file?
  44. Windows batch: echo without new line
  45. I want to delete all bin and obj folders to force all projects to rebuild everything
  46. Capture Curl Output to a File
  47. What are the undocumented features and limitations of the Windows FINDSTR command?
  48. How to loop through files matching wildcard in batch file
  49. Setting a system environment variable from a Windows batch file?
  50. How can I run a program from a batch file without leaving the console open after the program start?