batch-file 599

  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. How to “comment-out” (add comment) in a batch/cmd?
  5. How do I run two commands in one line in Windows CMD?
  6. Batch file to delete files older than N days
  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 to run multiple .BAT files within a .BAT file
  10. How can you echo a newline in batch files?
  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. Declaring and using a variable in Windows batch file (.BAT)
  18. Create folder with batch but only if it doesn't already exist
  19. Get list of passed arguments in Windows batch script (.bat)
  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. In Windows cmd, how do I prompt for user input and use the result in another command?
  25. Hidden features of Windows batch files
  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. How to delete files/subfolders in a specific directory at command prompt in Windows
  29. Batch script: how to check for admin rights
  30. How to get the path of the batch script in Windows?
  31. How to check if a process is running via a batch script
  32. Quickly create large file on a windows system?
  33. Which comment style should I use in batch files?
  34. How can you zip or unzip from the script using ONLY Windows' built-in capabilities?
  35. Logical operators (“and”, “or”) in DOS batch
  36. Assign output of a program to a variable
  37. Batch not-equal (inequality) operator
  38. How to create empty text file from a batch file?
  39. Batch script loop
  40. Get current batchfile directory
  41. How to capture Curl output to a file?
  42. Batch file to copy files from one folder to another folder
  43. How do you loop through each line in a text file using a windows batch file?


  44. How can I auto-elevate my batch file, so that it requests from UAC administrator rights if required?
  45. What is the best way to do a substring in a batch file?
  46. I want to delete all bin and obj folders to force all projects to rebuild everything
  47. How to pass password to scp?
  48. Windows batch: echo without new line
  49. What are the undocumented features and limitations of the Windows FINDSTR command?
  50. Setting a system environment variable from a Windows batch file?