Showing posts with label Windows. Show all posts
Showing posts with label Windows. Show all posts

How to take a screenshot on Windows 10

1. Press PrtScn. This copies the entire screen to your clipboard. 

2. Press Alt + PrtScn. This copies the active window to your clipboard.

3. Press the Windows key + Shift + S. The screen will dim and the mouse pointer will change. You can drag to select a portion of the screen to capture. The screenshot will be copied to your clipboard.

4. Press the Windows key + PrtScn. This saves the entire screen as an image file.

Batch Command to Change DNS

Save the code below and paste in Notepad and save to .bat
  
@ECHO OFF 
TITLE Batch Command to Change DNS

:retry
ECHO Welcome girl! 
SET /P no= So do what you want! press 1 for Google DNS, 2 for Cloudflare DNS, 3 for Automatic Dynamic DNS :

IF "%no%"=="1" GOTO Google DNS
IF "%no%"=="2" GOTO Cloudflare DNS
IF "%no%"=="3" GOTO Automatic Dynamic DNS
exit /b 0


:Google DNS
netsh interface ip set dns "WiFi" dhcp
netsh interface ip add dns name="WiFi" addr=8.8.8.8
netsh interface ip add dns name="WiFi" addr=8.8.4.4 index=2
pause
exit /b 0

:Cloudflare DNS
netsh interface ip set dns "WiFi" dhcp
netsh interface ip add dns name="WiFi" addr=1.1.1.1
netsh interface ip add dns name="WiFi" addr=1.0.0.1 index=2
pause
exit /b 0

:Automatic Dynamic DNS
rem netsh interface ip set address "WiFi" dhcp
netsh interface ip set dns "WiFi" dhcp
pause
  

How to stop Microsoft OneNote from showing in the system tray ?

1. Open OneNote

2. Go to File 

3. Then, Options. 

4. Now under Display tab, uncheck the "Place OneNote icon in the notification area of the taskbar".

Windows batch script

The following command cause Windows Media Player to open and play the audio file test.mp3.

start wmplayer "c:\mp3\test.mp3"