O
O
Oleg Pogrebnyak2018-05-11 09:56:22
cmd/bat
Oleg Pogrebnyak, 2018-05-11 09:56:22

Batch doing multiple things?

Windows 10. You need to write a script to change the sound mode, performance and network. The commands could not be googled.
Pseudocode:
if (this batch name == "1.bat)
{
Windows volume = 0;
Performance mode = (as far as I understand, it will be impossible to specify the name of the mode in Russian, so you will most likely have to use the code for this mode, which can probably be found in registry);
WiFi = off;
This file name = "2.bat";
Killprocess(processname);
}
else
{
Volume = 0.8;
Performance mode = other;
WiFi = on;
File name = "1.bat";
Startprocess(path );
}

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Anton Kiselyov, 2018-05-11
@zamboga

It's not very clear what you need.
Calling one batch file from another is the call command.
Or just collect all the commands from different batch files into one. What is the question, anyway?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question