Tag: Windows command prompt

Prevent Command Prompt from closing automatically

If you have observed that command prompt closes automatically after it’s execution, this article explains you how to fix that. I noticed it when i executed a batch file. It opened the command prompt, executed the commands and disappeared immediately after execution is completed. Stop Command Prompt from closing automatically Add /K after each command. […]

How to: Open command prompt using search box on windows

open command prompt as administrator on windows

Launch command prompt using search box on task bar Type Command Prompt in the search box on the task bar Click on Command Prompt Desktop app (see below pic) If you want to run command prompt as administrator, then right click on Command Prompt result and click on Run as administratorNote: This guide is applicable […]

Shutdown or Restart remote computer using command prompt

command prompt image showing command to shutdown remote PC

If you are connected to a remote Windows PC or computer, you don’t see sleep or shutdown or restart options on Windows Start  -> Power button. You can see only Disconnect or sign out/logoff options. So you can’t restart the remote PC directly like you do on your computer. But you can RESTART/SHUT DOWN the remote […]

Windows command to know Wi-Fi password of your current network


When you connect your computer to a WiFi network, first time you will ask the WiFi admin for the password and enters that. If you have selected “automatically connect to this network”, then next time onwards your computer will be connected to that particular WiFi network automatically without re-entering the password. Suppose, if you want other […]

FC command | File comparison using Windows CMD


FC command compares the contents of text or binary files and can compare both Unicode and ASCII text. Syntax: FC [pathname1] [pathname2] Or FC /B [pathname1] [pathname2] Usage 1:  Suppose two files file1.txt and file2.txt are on Desktop (in the same folder/directory), then Open Command prompt-> change the directory to Desktop and use the FC command as shown below. If […]