Run Batch Files Windows 10
Here is my test.bat
Run a batch file at loading of Windows 8 and 10 Create a shortcut to the batch file. Once the shortcut is created, right-click the shortcut file and select Cut. Press Start, type Run, and press Enter. In the Run window, type shell:startup to open the Startup folder. Once the Startup folder is.
Batch Files As Administrator. To auto-run a batch file as administrator, you need to first create the batch file, and then create a shortcut for it. To create a shortcut, right-click the file, and select Send to. Run Batch Files silently on Windows Run it from within the command prompt. Create a shortcut on your desktop, and point it towards the bat file. Make sure to change the Properties of the shortcut as Start minimized.
When I run test.bat on Windows 10 I get this output:
In Windows 10, you can run batch files by Command Prompt and Files Explorer. You can schedule the running timing so you don’t need to do it manually every time. Use these steps to schedule the batch file: 1. I need to install a.bat file on windows 10, x64, but the file does not run when I click it, nither as an admin, is there a solution for this? Inside the instal.bat is written: @devcon remove root mcamvusb @devcon install mcamvusb.inf root mcamvusb which is, there is a devcon.exe file in the same foledr, that instal.bat should run it.
I can't figure it out. I've checked my PATH, installed cygwin, looked over several Stackoverflow posts, and can't seem to get the script to work. The script was created as a simple test and nothing more.
Compo1 Answer
From my comment, this is a batch file for Windows, (it usually has a .cmd
extension but may use .bat
instead):
Not the answer you're looking for? Browse other questions tagged windowsbatch-file or ask your own question.
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 prompt screen for 1 second and nothing happens.
Can someone help me please?
Scott Beesonclosed as unclear what you're asking by vcsjones, aschipfl, Mofi, Dennis van Gils, DavidPostillAug 29 '16 at 17:03
Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. Ummy video downloader reviews. If this question can be reworded to fit the rules in the help center, please edit the question.
1 Answer
There is no inherent reason that a simple batch file would run in XP but not Windows 10. It is possible you are referencing a command or a 3rd party utility that no longer exists. To know more about what is actually happening, you will need to do one of the following:
- Add a
pause
to the batch file so that you can see what is happening before it exits.- Right click on one of the
.bat
files and select 'edit'. This will open the file in notepad. - Go to the very end of the file and add a new line by pressing 'enter'.
- type
pause
. - Save the file.
- Run the file again using the same method you did before.
- Right click on one of the
- OR -
- Run the batch file from a static command prompt so the window does not close.
- In the folder where the
.bat
files are located, hold down the 'shift' key and right click in the white space. - Select 'Open Command Window Here'.
- You will now see a new command prompt. Type in the name of the batch file and press enter.
- In the folder where the
Once you have done this, I recommend creating a new question with the output you see after using one of the methods above.