About 9,510,000 results
Open links in new tab
  1. Format date and time in a Windows batch script - Stack Overflow

    In a Windows (Windows XP) batch script I need to format the current date and time for later use in files names, etc. It is similar to Stack Overflow question How to append a date in batch fil...

  2. Automatically run a script when I log on to Windows

    A good alternate method is to create a batch file with the commands you want to run in them. Next you will specify in the policy editor on the machine that it run a login script as part of the login …

  3. IF... OR IF... in a windows batch file - Stack Overflow

    Addendum - This is a duplicate question with nearly identical answers to Using an OR in an IF statement WinXP Batch Script Final addendum - I almost forgot my favorite technique to test if …

  4. What does the percent sign (% and %%) in a batch file argument …

    1 It's a variable. That particular example uses the directory option of a FOR loop, iterating through the directories and assigning them to %%A. That's also not a command-line example, but a …

  5. Using parameters in batch files at Windows command line

    Using parameters in batch files: %0 and %9 Batch files can refer to the words passed in as parameters with the tokens: %0 to %9. %0 is the program name as it was called. %1 is the …

  6. windows - How can I delete all files/subfolders in a given folder via ...

    Apr 27, 2015 · I would like to delete all files and subfolders using a batch file in Windows 7 and keep the top folder. Basically emptying the folder.

  7. How to run a PowerShell script from a batch file - Stack Overflow

    Rather than hard-coding the entire path to the PowerShell script though, I recommend placing the batch file and PowerShell script file in the same directory, as my blog post describes.

  8. windows - How to unzip a file using the cmd? - Super User

    Apr 16, 2018 · I want to make a BAT file that will ZIP or UNZIP a file. For zipping a file, I have found this question: Can you zip a file from the command prompt using ONLY Windows' …

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

  10. batch - How to Set Default Apps on Windows 10 with a script

    Jan 23, 2020 · I am in an enterprise environment and I am trying to set the default apps on several systems by using a .bat script. This is what my script is doing, nothing complicated. …