About 11,500,000 results
Open links in new tab
  1. How to execute PowerShell commands from a batch file?

    I want to avoid creating a separate file for the PS script to be called from the batch - everything must be in the batch file. The question is: How to execute PowerShell commands (or …

  2. How to code a BAT file to always run as admin mode?

    Mar 23, 2017 · It creates a VBScript file with code that elevates you to admin (if you're not already), and runs the bat file again, this time as admin.

  3. Press Keyboard keys using a batch file - Stack Overflow

    8 Just to be clear, you are wanting to launch a program from a batch file and then have the batch file press keys (in your example, the arrow keys) within that launched program? If that is the …

  4. How to request Administrator access inside a batch file

    Dec 13, 2009 · I am trying to write a batch file for my users to run from their Vista machines with UAC. The file is re-writing their hosts file, so it needs to be run with Administrator permissions. …

  5. How to automatically close cmd window after batch file execution?

    Feb 5, 2013 · You normally end a batch file with a line that just says exit. If you want to make sure the file has run and the DOS window closes after 2 seconds, you can add the lines: timeout 2 …

  6. Keep CMD open after BAT file executes - Stack Overflow

    Jul 31, 2013 · I have a bat file like this: ipconfig That will print out the IP info to the screen, but before the user can read that info CMD closes itself. I believe that CMD assumes the script …

  7. How can I pass arguments to a batch file? - Stack Overflow

    I need to pass an ID and a password to a batch file at the time of running rather than hardcoding them into the file. Here's what the command line looks like: test.cmd admin P@55w0rd > …

  8. Creating a BAT file for python script - Stack Overflow

    Jan 1, 2011 · How can I create a simple BAT file that will run my python script located at C:\\somescript.py?

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

    Note that if you get wacky errors executing like this for scripts that work when the script is invoked from within PowerShell, you might need to use pwsh.exe in your bat file instead of …

  10. Can´t run .bat file under windows 10 - Stack Overflow

    Aug 29, 2016 · I have few .bat files that I used under Windows XP. Now I want to use them under Windows 10, but when I run one of the files (even as administrator) it shows the command …