Jump to content

.bat file to execute a change to the Boost level?

LamoidZombieDog

Hello, i need to make a .bat i can put on the Taskbar that puts boost for a specific microphone up to 30 (highest setting available) and then another to reduce it back to 10 (lowest setting available before 0 boost) would be great if i can set a custom icon as well but not required. what script do i need? could be .exe, what ever. i figure a .bat would be easiest.

If my Response helped you, Please click the Check under my reply, to mark it as The Solution!

Link to comment
Share on other sites

Link to post
Share on other sites

You can't do this natively through Windows command line AFAIK.

 

Have a look at NirCmd:

 

http://www.nirsoft.net/utils/nircmd2.html#using

 

setsubunitvolumedb [Device Name] [Subunit Name] [Decibel Value]

Set the sound volume (in Decibels) of sound device subunit.
The [Device Name] is the name of the device, as appeared in the sound devices list of windows. In most cases the device name is 'Speakers'.
The [Subunit Name] is the name of a subunit, as appeared in the 'Level' tab of the device properties window. Examples for subunit name: Phone Line, Microphone, Internal MIC, Line In, and so on...
Examples:
setsubunitvolumedb "Speakers" "Line In" -25
setsubunitvolumedb "Speakers" "Microphone" -10

 

The actual bat file would end up looking something like:

 


@echo off

start nircmd.exe /min setsubunitvolumedb "Speakers" "Microphone" 30

Link to comment
Share on other sites

Link to post
Share on other sites

12 minutes ago, Oshino Shinobu said:

You can't do this natively through Windows command line AFAIK.

 

Have a look at NirCmd:

 

http://www.nirsoft.net/utils/nircmd2.html#using

 

setsubunitvolumedb [Device Name] [Subunit Name] [Decibel Value]

Set the sound volume (in Decibels) of sound device subunit.
The [Device Name] is the name of the device, as appeared in the sound devices list of windows. In most cases the device name is 'Speakers'.
The [Subunit Name] is the name of a subunit, as appeared in the 'Level' tab of the device properties window. Examples for subunit name: Phone Line, Microphone, Internal MIC, Line In, and so on...
Examples:
setsubunitvolumedb "Speakers" "Line In" -25
setsubunitvolumedb "Speakers" "Microphone" -10

 

The actual bat file would end up looking something like:

 


@echo off

start nircmd.exe /min setsubunitvolumedb "Speakers" "Microphone" 30

so i set up

 

@echo off

 

start nircmd.exe /min setsubunitvolumedb "CMicrophone" "Microphone Boost" 30

 

 

 

When i execute, it just says can not find nircmd.exe

If my Response helped you, Please click the Check under my reply, to mark it as The Solution!

Link to comment
Share on other sites

Link to post
Share on other sites

2 minutes ago, LamoidZombieDog said:

so i set up

 

@echo off

 

start nircmd.exe /min setsubunitvolumedb "CMicrophone" "Microphone Boost" 30

 

 

 

When i execute, it just says can not find nircmd.exe

i now see i have to install nircmd. let me do that and ill get back here soon.

If my Response helped you, Please click the Check under my reply, to mark it as The Solution!

Link to comment
Share on other sites

Link to post
Share on other sites

Just now, LamoidZombieDog said:

so i set up

 

@echo off

 

start nircmd.exe /min setsubunitvolumedb "CMicrophone" "Microphone Boost" 30

 

 

 

When i execute, it just says can not find nircmd.exe

Did you install Nircmd? 

 

Try adding a command to move to the directory where the nircmd.exe file is located (eg: cd C:\nircmd), or specify the full path to nircmd.exe after start

Link to comment
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×