Questions tagged [nircmd]
NirCmd is a small command-line utility for Windows that allows you to do some useful tasks without displaying any user interface.
31
questions
1
vote
0
answers
49
views
Invoke S0 Sleep using Task Scheduler for all users
I'm trying to get a Windows 10 Optiplex 7000 to go to sleep at 10pm every day. I installed nircmd and created a task in task scheduler to run a .bat file with the following command: nircmd.exe monitor ...
0
votes
2
answers
390
views
Make power-button force shutdown
I want my PC power-button to shut down Windows immediately. But what it actually does it prompt for action if there are e.g. unsaved changes.
How can I force the power button to shut down immediately?
...
1
vote
2
answers
316
views
How do I create a batch command to minimize the window of a particular program?
I'm using Task Scheduler to launch SoundID Reference.exe, a third-party program, 60 seconds after my Win 10 64-bit computer starts up. That's working fine.
I would like to create a batch command to ...
1
vote
1
answer
1k
views
NirCmd volume control of certain applications from Volume Mixer not working?
So I use this app to mute microphone communication in Valorant.
But I also want to mute the game itself.
The devs of the game have separated these 2 so in Volume Mixer (SndVol.exe) they are 2 ...
3
votes
4
answers
704
views
Can you use nircmd to help save clipboard contents to a Batch File variable?
In a batch script, I wish to save the clipboard text into a variable. Having searched it seems that this is not possible without 3rd-party tools. Well I have nircmd, and one of its commands is:
"...
0
votes
2
answers
414
views
NirCmd: Copy Path vs. Copy File Name
nircmd.exe execmd (echo.|set /p=\"%1\") | clip
Copies %1 path to the clipboard.
How can I copy the file name to the clipboard using NirCmd?
echo. | set /p = "%~nx1" | clip works in ...
2
votes
1
answer
2k
views
How to get system volume level(audio) in windows?
Using nircmd we can set system volume level(audio) but how to get system volume?
How can we get system volume using powershell?
1
vote
2
answers
2k
views
Using nircmd to turn off monitor instead puts PC to sleep
I've been using nircmd to turn off the monitor/display of various PCs like so:
nircmd.exe cmdwait 1000 monitor off
The cmdwait 1000 part just adds a 1 second delay (to let the last keystroke and ...
0
votes
0
answers
432
views
Mic mute/Unmute Toggle is not working
Trying to toggle Mute/Unmute for my microphone on the latest windows 10 build but its not working
what I'm trying to do below in the code is toggle the mic and each time I do toggle the mic a ...
1
vote
1
answer
877
views
NirCmd 'Failed to copy NirCmd!' & can't get NirCmd to work overall
NirCmd has been working just fine for me for a very long amount of time, but not today... I couldn't get the following command to work, although it always worked fine in the past:
nircmd win close ...
1
vote
0
answers
634
views
CMD | Command to change position of monitor on dual monitor display setup
I'm a newbie to cmd, but I've managed to create 2 bat files that switches between primary displays (Display 1 and Display 2).
I did this to simplify the process of running a dual-monitor splitscreen ...
1
vote
2
answers
575
views
nircmd screen capture is smaller than actual resolution of the screen
I am taking a screenshot using NirCmd savescreenshot. The result screenshot is smaller than the actual resolution of the my screen. My screen resolution is 1920 x 1080.
When I tried this link, it ...
0
votes
1
answer
2k
views
Focusing a window in cmd with Nircmd
First time posting. I have been playing around with creating macros that can individually adjust the sound of individual application. Found that Nircmd has the commands that I want for example if I ...
1
vote
0
answers
193
views
NirCmd setsysvolume startup issue
Copying the string "nircmd.exe setsysvolume 49151" (without quotes) into command prompt works, when i copy it into an example.cmd file and doubleclick to open it, it does not work.
What am i doing ...
1
vote
1
answer
2k
views
how to close a specific instance of a process using nircmd?
I have been using the following command to try closing the notepad file "temp.txt" opened on the windows.
nircmd win close title "temp.txt"
But this command seems not to work.
If I try the below ...
1
vote
1
answer
3k
views
NirCMD - Command line screenshot with incremental numbering
NirCMD is a free command line utility. I am using it to take the screenshot at a fixed time interval. (NirCMD reference).
I am trying to get it index the image names so that it would be
img1.png
...
0
votes
1
answer
386
views
NirCmd won't run on Windows XP
I am using the NirCmd Command Line utility. It works fine on Windows 10, but I am trying to use it on Windows XP SP3. It says that it is not a Win32 compatible program. The website claims that it ...
2
votes
1
answer
4k
views
Nircmd not recognized in directory
I've an interesting issue; I added nircmd.exe to my directory by running it as administrator and going through the prompts, and confirmed it was in the directory by looking in C:\Windows.
Yet ...
0
votes
1
answer
3k
views
Shortcut created with script not showing up in Start Menu
I've just started trying to use nircmd. When I made a shortcut in a batch script, the shortcut was successfully created in the folder for my user's Start Menu > All Apps (%AppData%\Roaming\Microsoft\...
1
vote
3
answers
1k
views
Create shortcut using app path
How can I create a shortcut (perhaps using NirCmd) to Acrobat.exe using the path in HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\Acrobat.exe and parameters /A "page=10" "file.pdf"?
0
votes
1
answer
106
views
Nircmd: Invoking monitor using 'enter' key goes back again to monitor off state
I have created a shortcut with below command to turn-off laptop monitor (referred from this web link).
“C:\path\to\nircmd.exe” cmdwait 1000 monitor off
This solution is working fine for turning off ...
1
vote
2
answers
38k
views
remove password using cmd if user name is of two words
I want to change password using cmd.exe but I can't do this. :(
Because the user name is of two words(e.g. Engr. Saud). It works only on One word. How I tell cmd.exe as both words are Single user name?...
0
votes
1
answer
2k
views
Nircmd | Setting Volume | set specified volume amount (*/100)
Nircmd is like a variable to windows already built-in cmd and comes along with great informative, most especially brief documentation.
SETTING VOLUME (commands)
changesysvolume
change ...
0
votes
0
answers
93
views
Find what program or device turns display on
I'm using program NirCMD to turn display of computer off.
"C:\Program Files\nircmd-x64\nircmd.exe" cmdwait 1000 monitor off
How can i tell what device or software turns it back on?
0
votes
0
answers
209
views
cmd.exe at \\computername to run on remote machine
My original problem was the NirCmd remote \\PC_D ... (http://www.nirsoft.net/utils/nircmd.html) was failing. I tracked that down to it using at \\computername command which is not working on all ...
2
votes
1
answer
1k
views
NirCmd Screen stays black after waking up from sleep mode
I have a computer that should have 0 user interactions.
I want it to turn off and on on specific times.
Right now, i have a command that puts the computer to sleep. However i also need a task that ...
3
votes
1
answer
3k
views
sending keypresses to a process using nircmd
I'm trying to use nircmdc to send a keypress to a background process (without bringing it to front).
More precisely, i'm tring to send Ctrl+Shift+S to notepad++.exe:
nircmdc win postmsg process ...
1
vote
1
answer
9k
views
NirCmd won't copy to windows directory
I was suggested to use NirCmd from this quesiton. However, when I pressed the "Copy to windows directory" button, I got this error. Why?
1
vote
2
answers
3k
views
Setting cmd with default command and user defined message
On button click in a winform application I am executing cmd.exe file (Using system("cmd.exe");), which opens perfectly fine and displays the following:
Microsoft Windows XP [Version 6.1.7601]
(C) ...
1
vote
2
answers
1k
views
My monitor doesn't auto-turn off!
I have Windows Vista and I've set up my display to turn off after 1 minute of inactivity in Power Options. However, it simply doesn't.
I also tried a utility called "nircmd" which has a "power ...
1
vote
1
answer
2k
views
Windows Task Scheduler and possible permission problems
I use NirCmd (http://www.nirsoft.net/utils/nircmd.html) to enable me to run commands such as "power off the monitor", "mute system volume" from the command-line (and I highly recommend it, BTW). My OS ...