Running .BAT or .CMD files hidden (invisible mode) Using NirCmd

NirCmd is a multipurpose command-line automation utility from the third-party vendor Nirsoft. We’ve covered NirCmd many times in the past on our site.

We can use NirCmd to run a program, script or batch file in hidden mode.

Download NirCmd and extract the file to your Windows directory.

From the Run dialog or Command Prompt, use the following syntax to launch a batch file or program in hidden mode:

C:\Windows\nircmd.exe exec hide C:\Users\PC\Downloads\PC move\move.bat

文章生成器

富勒在不经意间这样说过,苦难磨炼一些人,也毁灭另一些人。这启发了我, 伏尔泰曾经说过,坚持意志伟大的事业需要始终不渝的精神。这不禁令我深思。 亂寫一通的发生,到底需要如何做到,不亂寫一通的发生,又会如何产生。 贝多芬说过一句富有哲理的话,卓越的人一大优点是:在不利与艰难的遭遇里百折不饶。这句话语虽然很短,但令我浮想联翩。 爱尔兰曾经说过,越是无能的人,越喜欢挑剔别人的错儿。这句话语虽然很短,但令我浮想联翩。 那么, 问题的关键究竟为何? 生活中,若亂寫一通出现了,我们就不得不考虑它出现了的事实。 歌德在不经意间这样说过,读一本好书,就如同和一个高尚的人在交谈。这句话语虽然很短,但令我浮想联翩。

https://suulnnka.github.io/BullshitGenerator/index.html?%E4%B8%BB%E9%A2%98=%E4%BA%82%E5%AF%AB%E4%B8%80%E9%80%9A&%E9%9A%8F%E6%9C%BA%E7%A7%8D%E5%AD%90=380767122

Using Google Home / assisntant voice command to turn on my PC with Wake-on-LAN via samung galaxy s10

Using Google Home – google assisntant voice command to turn on my PC with Wake-on-LAN , require a samsung galaxy android device with with Bixby Routine built in , which should be galaxy s10 or above. eg: s20, note 10, note 20

The only extra app required is “Wake On Lan” by Mike Webb
No website login or coding is required

Goodies

DevManView v1.70 – Alternative to device manager of Windows
https://www.nirsoft.net/utils/device_manager_view.html

shortcut or use to disable / enable or restart a device

USBDeview v3.00
https://www.nirsoft.net/utils/usb_devices_view.html

view / delete old device in bulk

Both are from nirsoft
https://www.nirsoft.net/

Powershell reminder

Enter-PSSession -ComputerName 192.168.0.131 -Credential XX
Get-Counter ‘\Processor(_Total)\% Processor Time’

Save into a PS1 file

Create a short cut
powershell.exe -noexit -ExecutionPolicy Bypass -File “C:\Users\STAFF\Desktop\enter.PS1”

Quickly change windows text scaling DPI between 125% 150% and 175% using bat files

toggle between 125% DPI and 175% DPI

@ECHO OFF

explorer ms-settings:display
timeout /T 1

:VBSDynamicBuild
SET TempVBSFile=%tmp%\~tmpSendKeysTemp.vbs
IF EXIST “%TempVBSFile%” DEL /F /Q “%TempVBSFile%”
ECHO Set WshShell = WScript.CreateObject(“WScript.Shell”) >>”%TempVBSFile%”
ECHO Wscript.Sleep 1600 >>”%TempVBSFile%”
ECHO WshShell.SendKeys “{TAB}{TAB}{UP}{UP}” >>”%TempVBSFile%”
ECHO Wscript.Sleep 500 >>”%TempVBSFile%”
ECHO WshShell.SendKeys “%%{F4}” >>”%TempVBSFile%”

CSCRIPT //nologo “%TempVBSFile%”
EXIT

—– > save to a BAT file for decrease from 150 to 125%

@ECHO OFF

explorer ms-settings:display
timeout /T 1

:VBSDynamicBuild
SET TempVBSFile=%tmp%\~tmpSendKeysTemp.vbs
IF EXIST “%TempVBSFile%” DEL /F /Q “%TempVBSFile%”
ECHO Set WshShell = WScript.CreateObject(“WScript.Shell”) >>”%TempVBSFile%”
ECHO Wscript.Sleep 1600 >>”%TempVBSFile%”
ECHO WshShell.SendKeys “{TAB}{TAB}{DOWN}{DOWN}{DOWN}” >>”%TempVBSFile%”
ECHO Wscript.Sleep 500 >>”%TempVBSFile%”
ECHO WshShell.SendKeys “%%{F4}” >>”%TempVBSFile%”

CSCRIPT //nologo “%TempVBSFile%”
EXIT

—– > save to a BAT file for increase from 150 to 175%

explorer ms-settings:display
timeout /T 1

:VBSDynamicBuild
SET TempVBSFile=%tmp%\~tmpSendKeysTemp.vbs
IF EXIST “%TempVBSFile%” DEL /F /Q “%TempVBSFile%”
ECHO Set WshShell = WScript.CreateObject(“WScript.Shell”) >>”%TempVBSFile%”
ECHO Wscript.Sleep 5 >>”%TempVBSFile%”
ECHO WshShell.SendKeys “{TAB}{TAB}{UP}{UP}{UP}{UP}{DOWN}{DOWN}” >>”%TempVBSFile%”
ECHO Wscript.Sleep 5 >>”%TempVBSFile%”
ECHO WshShell.SendKeys “%%{F4}” >>”%TempVBSFile%”

CSCRIPT //nologo “%TempVBSFile%”
EXIT

—– > save to a BAT file for reset to 150%

actually need to adjust the ECHO WshShell.SendKeys “{TAB}{TAB}{UP}{UP}”
depends on different computer’s display setting
set to the correct sequence , depends on your graphic card

Must reset back to 150% before using the 125 / 175 bat files