About 41,900 results
Open links in new tab
  1. windows - How to run a PowerShell script - Stack Overflow

    250 If you want to run a script without modifying the default script execution policy, you can use the bypass switch when launching Windows PowerShell.

  2. How to sleep for five seconds in a batch file/cmd [duplicate]

    Closed 7 years ago. Windows's Snipping tool can capture the screen, but sometimes I want to capture the screen after five seconds, such as taking an image being displayed by the webcam. (Run the …

  3. Windows batch script to move files - Stack Overflow

    I need to move files from one directory to another in windows, and I need to write this in a batch script. We have written a SQL job where backup files will be created every 4 hours on the D: driv...

  4. 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 a variable is any …

  5. How to send a simple email from a Windows batch file?

    I'm running Windows 2003 Service Pack 2. I have a batch file that runs on demand. I want to have an email sent every time the batch file runs. The email is simple, just a sentence indicating that the

  6. How to run .sh on Windows Command Prompt? - Stack Overflow

    Oct 23, 2014 · 7 On Windows 10 Anniversary Update, it's even easier to run shell commands in/with bash on ubuntu on windows I was trying to set my region for my x-wrt r7000 netgear router, I found …

  7. How do I run two commands in one line in Windows CMD?

    I want to run two commands in a Windows CMD console. In Linux I would do it like this touch thisfile ; ls -lstrh How is it done on Windows?

  8. windows - How to create an executable command prompt script

    I was thinking about creating a small script to do everything automatically, but I have never written any Windows shell script before and therefore don't even know where to begin. I would like to make an …

  9. windows - How can I auto-elevate my batch file, so that it requests ...

    The script takes advantage of the fact that whoami combined with find checks for administrator membership (built in group S-1-16-12288 in Windows) and returns errorlevel 1 if you don't have it. If …

  10. Windows batch files: .bat vs .cmd? - Stack Overflow

    Sep 29, 2008 · A script that is designed for cmd.exe can be named .cmd to prevent accidental execution on Windows 9x. This filename extension also dates back to OS/2 version 1.0 and 1987.