Posts

Showing posts from February, 2018

[How To] Download image from Google

Image
Google has recently removed "View Image" button from its search results. But don't get disappointed, you still can download image from Google searches. Step 1: Search what are you are looking for in Google, and switch to Images tab from All tab. Step 2: Scroll google image search page until you find what you want. Step 3: Click on the image you want to download and click on "Visit" button.

Hide password in Command prompt

Image
@echo off set "psCommand=powershell -Command "$pword = read-host 'Enter Password' -AsSecureString ; ^     $BSTR=[System.Runtime.InteropServices.Marshal]::SecureStringToBSTR($pword); ^         [System.Runtime.InteropServices.Marshal]::PtrToStringAuto($BSTR)"" for /f "usebackq delims=" %%p in (`%psCommand%`) do set password=%%p echo %password% This trick reads a password on Windows without echoing it to the screen by calling PowerShell from a batch file and using a SecureString prompt, so the typed characters do not appear in the console. Masking input is a small but useful courtesy in scripts that ask for credentials. Note that hiding the characters guards against shoulder surfing, not against the value being readable once it is in memory.