Quantcast
Channel: Active questions tagged windows - Super User
Viewing all articles
Browse latest Browse all 9683

A batch file with an executable file checks if it is not in the processes in order to run another batch file (or code from it)

$
0
0

There are two batch files. Need to add a condition to the first file if the process is running nvcplui.exe then nothing, and if it is not running, then the second file (or the code from it) will be applied. I am far from programming, so I will be grateful for the finished version.

1 bat

sc config NVDisplay.ContainerLocalSystem start=autonet start NVDisplay.ContainerLocalSystemstart "" "C:\Program Files\NVIDIA Corporation\NVIDIAControlPanel\nvcplui.exe"

2 bat

net stop NVDisplay.ContainerLocalSystemsc config NVDisplay.ContainerLocalSystem start= disabled

Viewing all articles
Browse latest Browse all 9683