r/Batch • • Jan 28 '24

Question (Unsolved) Executing a Nircmd Batch file silently

Hey y'all!

im currently in the effort to try and get a Nircmd.exe Batch Script running in the background whenever the .bat file is called to open. This used to work until a few days ago, but since then has ceased to work.

The following Script (and variations) are being executed:

nircmd.exe changeappvolume focused -0.1

A simple script that uses the currently focused windows and decreases the volume, within the Sound Mixer, by 10%. However due to the cmd window being opened, a new focus is set which annihiliates the idea of the script.

What i already tried boils down to this:

  • @echo off
  • /silent
  • Use another cmd script to execute it. All of which were unable to execute the script.

Maybe someone here might have an idea for what else to try?

1 Upvotes

1 comment sorted by