Creating a command line command file

I want to run this as a batch, and not through the command line:

w32tm /config /manualpeerlist:bigben.cac.washington.edu /syncfromflags:MANUAL net stop w32time & net start w32time w32tm /resync 
+4
source share
1 answer

I assume that you are just trying to execute these commands one by one in a batch file?

If you need to open notepad .

Copy and paste your commands into notepad, as you are in your question, and click File -> Save As .

Give the file the name ie MyBatchFile.bat . Under the file name field, change the file type to All Files . .bat at the end of the file name will instruct the PC to open it as a batch file.

Batch files are opened by command line by default, so all you have to do is run it.

+5
source

Source: https://habr.com/ru/post/1403139/


All Articles