echo '' ;

MicroSoft Windows OS

Windows is the one of the OS by Microsoft and it will support many processors like AMR, Intel Core and so on. Windows has many variants like windows XP, windows 7, Windows 8, and Windows 10.

ArunEworld Microsoft Windows OS Post

Windows Command Prompt

Windows command prompt is an interpreter. Whenever we enter the pre-defined command, the windows will compile the lines and arguments and execute the user-entered set of commands.

  • Rules: In the command prompt, you can type the lowercase or UPPERCASE using a single command. Example: help or HELP or Help are the same meaning only

How to copy the displayed text in the command prompt

You need to select the text using a mouse/keyboard/touchpad. One selected then just hit the ENTER key. Now you can paste somewhere, and check that copied contents are properly pasted.

How to paste the copied text in the command prompt

For pasting the copied text in the command prompt, you can use the Normal paste procedure CNTL+V

Windows Command List

usually you can get the all command list when your enter the HELP command in windows command prompt

CommandDescriptions
$PSVersionTableFind out the version of PowerShell
ASSOCDisplays or modifies file extension associations.
ATTRIBDisplays or changes file attributes.
BREAKSets or clears extended CTRL+C checking.
BCDEDITSets properties in boot database to control boot loading.
CACLSDisplays or modifies access control lists (ACLs) of files.
CALLCalls one batch program from another.
CDDisplays the name of or changes the current directory.
CHCPDisplays or sets the active code page number.
CHDIRDisplays the name of or changes the current directory.
CHKDSKChecks a disk and displays a status report.
CHKNTFSDisplays or modifies the checking of disk at boot time.
CLSClears the screen.
CMDStarts a new instance of the Windows command interpreter.
COLORSets the default console foreground and background colors.
COMPCompares the contents of two files or sets of files.
COMPACTDisplays or alters the compression of files on NTFS partitions.
CONVERTConverts FAT volumes to NTFS. You cannot convert the current drive.
COPYCopies one or more files to another location.
DATEDisplays or sets the date.
DELDeletes one or more files.
DIRDisplays a list of files and subdirectories in a directory.
DISKPARTDisplays or configures Disk Partition properties.
DOSKEYEdits command lines, recalls Windows commands, and creates macros.
DRIVERQUERYDisplays current device driver status and properties.
ECHODisplays messages, or turns command echoing on or off.
ENDLOCALEnds localization of environment changes in a batch file.
ERASEDeletes one or more files.
EXITQuits the CMD.EXE program (command interpreter).
FCCompares two files or sets of files, and displays the differences between them.
FINDSearches for a text string in a file or files.
FINDSTRSearches for strings in files.
FORRuns a specified command for each file in a set of files.
FORMATFormats a disk for use with Windows.
FSUTILDisplays or configures the file system properties.
FTYPEDisplays or modifies file types used in file extension associations.
GOTODirects the Windows command interpreter to a labeled line in a batch program.
GPRESULTDisplays Group Policy information for machine or user.
GRAFTABLEnables Windows to display an extended character set in graphics mode.
HELPProvides Help information for Windows commands.(to get help)
ICACLSDisplay, modify, backup, or restore ACLs for files and directories.
IFPerforms conditional processing in batch programs.
LABELCreates, changes, or deletes the volume label of a disk.
MDCreates a directory.
MKDIRCreates a directory.
MKLINKCreates Symbolic Links and Hard Links
MODEConfigures a system device.
MOREDisplays output one screen at a time.
MOVEMoves one or more files from one directory to another directory.
OPENFILESDisplays files opened by remote users for a file share.
PATHDisplays or sets a search path for executable files.
PAUSESuspends processing of a batch file and displays a message.
POPDRestores the previous value of the current directory saved by PUSHD.
PRINTPrints a text file.
PROMPTChanges the Windows command prompt.
PUSHDSaves the current directory then changes it.
RDRemoves a directory.
RECOVERRecovers readable information from a bad or defective disk.
REMRecords comments (remarks) in batch files or CONFIG.SYS.
RENRenames a file or files.
RENAMERenames a file or files.
REPLACEReplaces files.
RMDIRRemoves a directory.
ROBOCOPYAdvanced utility to copy files and directory trees
SETDisplays, sets, or removes Windows environment variables.
SETLOCALBegins localization of environment changes in a batch file.
SCDisplays or configures services (background processes).
SCHTASKSSchedules commands and programs to run on a computer.
SHIFTShifts the position of replaceable parameters in batch files.
SHUTDOWNAllows proper local or remote shutdown of machine.
SORTSorts input.
STARTStarts a separate window to run a specified program or command.
SUBSTAssociates a path with a drive letter.
SYSTEMINFODisplays machine specific properties and configuration.
TASKLISTDisplays all currently running tasks including services.
TASKKILLKill or stop a running process or application.
TIMEDisplays or sets the system time.
TITLESets the window title for a CMD.EXE session.
TREEGraphically displays the directory structure of a drive or path.
TYPEDisplays the contents of a text file.
VERDisplays the Windows version.
VERIFYTells Windows whether to verify that your files are written correctly to a disk.
VOLDisplays a disk volume label and serial number.
XCOPYCopies files and directory trees.
WMICDisplays WMI information inside interactive command shell.

Serial Number : WMIC BIOS GET SERIALNUMBER
Windows Command List

Apart from the above listed commands, In window we have many other command for different purpose. The above listed command only display in command prompt when we enter HELP command. But the below commands are not listed in Help results.

Network Commands

PurposeCommandDescriptions
NetworkARPDisplays and modifies the IP-to-Physical address translation tables used by
address resolution protocol (ARP).
NetworkIPCONFIGDisplay the windows IP configurations in the command prompt.
NetwrokNETSHDisplay the Network Information.

ARP

Displays and modifies the IP-to-Physical address translation tables used by
address resolution protocol (ARP).

  • Mostly List out all IP connected LAN network will use the command arp -a -

ArgumentsDescriptionUsageExample
-aDisplays current ARP entries by interrogating the current
protocol data. If inet_addr is specified, the IP and Physical
addresses for only the specified computer are displayed. If
more than one network interface uses ARP, entries for each ARP
table are displayed.
ARP -a [inet_addr] [-N if_addr] [-v]Adds a static entry: arp -s 157.55.85.212 00-aa-00-62-c6-09 ….

Displays the arp table.
arp -a
-gSame as -a.
-vDisplays current ARP entries in verbose mode. All invalid
entries and entries on the loop-back interface will be shown.
inet_addrpecifies an internet address.
-N if_addrDisplays the ARP entries for the network interface specified
by if_addr
-dDeletes the host specified by inet_addr. inet_addr may be
wildcarded with * to delete all hosts.
ARP -d inet_addr [if_addr]
-sAdds the host and associates the Internet address inet_addr with the Physical address eth_addr. The Physical address is given as 6 hexadecimal bytes separated by hyphens. The entry
is permanent.
ARP -s inet_addr eth_addr [if_addr]
eth_addrSpecifies a physical address.
if_addrIf present, this specifies the Internet address of the
interface whose address translation table should be modified.
If not present, the first applicable interface will be used.

NETSH

UsageDescriptionExample
netsh wlan show profile “NETWORK NAME” key=clearView Saved LAN Network Passwordnetsh wlan show profile “ArunEworld” Key=clear
netsh wlan delete profile “NETWORK NAME”Delete Saved LAN Wireless networknetsh wlan delete profile “ArunEworld”

Examples

Create Folder (Make Directory)

If you have a question like, How to create a folder or directory using windows command? Here your answer,

  • MD is one of the windows commands for Create a new folder.
  • MD means Make Directory
  • Syntax: MD <Folder_Name>.

Rename Folder or Rename Files

If you have a question like, How to rename a folder or directory using windows command? Here your answer,

  • To rename the directory or folder, we have two different command options (REN or RENAME)
  • RENAME and REN is one of the windows commands for rename file or folders
  • Rename the file Syntax: Rename *.<Original_File_Type> *.<Feature_File_Type> (Example : Rename *ArunEworld.txt *ArunEworld.log)
  • Rename the folder or directory Syntax: Rename *.<Original_Folder_Type> *.<Feature_Folder_Type> (Example : Rename *ARUN *Eworld)

List out Windows-installed software

If you have a question like, How to List out windows installed software using windows command? Here your answer,

The below code (AEW_Installed_Software_list.bat) installed automatically done this job

@echo off
REM ArunEworld Batch Script Examples
echo ================= >>software_list.txt
reg export HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall temp1.txt
find "DisplayName" temp1.txt| find /V "ParentDisplayName" > temp2.txt
for /f "tokens=2,3 delims==" %%a in (temp2.txt) do (echo %%a >> software_list.txt)
del temp1.txt
del temp2.txt
REM type software_list.txt | more
echo.
echo.
echo Installed software are stored in software_list.txt

Reference: Link

How to List out files of folders and sub folders

  • Command type: dir /s
  • Here dir is list out all the files and folders only.
  • Here /s denotes list out the all sub folders and files.

How to Freeze the cmd prompt

How to Freeze the cmd prompt when the ping test is running? ( if you know the answer please let me know)

How to run the batch file every 5 minutes?

Consider your batch file name is RunEvery5Minutes.bat

here 300 is 5mints, if you want 10s then mention value as 10

:loop
 RunEvery5Minutes.bat
 timeout /t 300
 goto loop

what is runas?

Reference


Windows: Shortcut Key

  • WINDOWS + A  – Open Notification Screen in Windows-10.
  • WINDOWS + B  – Select Task Bar items in Windows-10
  • WINDOWS key + D  – Show the Desktop(Minimized all windows in one time) in Windows-7,8,8.1,10
  • WINDOWS key + E  – Open File Explorer inWindows-7,8,8.1,10
  • WINDOWS key + L  : Logout the user in windows-7,8,8.1,10.
  • WINDOWS key + P  : Open Project Selection in windows-10.
  • WINDOWS key + R  – Open RUN command inWindows-7,8,8.1,10
  • WINDOWS key + S  – Search in Windows-10.
  • WINDOWS key + T  – Select Taskbar Items in Windows-10.
  • WINDOWS key + U  – Open Settings in Windows-10.
  • WINDOWS key + X  – Open Setting in Windows-10.
  • WINDOWS key + Tab  – Select Opened Windows in windows-10.
  • CNTL + L – Open Address bar or Current folder PATH in windows-10.

Windows: File Explorer

Delete Files easily by size

You may have many files in drive. you will get notification like “your drive got full”. Then you need to delete unwanted files in drive. To find the large file in drive, please follow below steps (I was tested this in my windows 10 at 20191111T204500 its working fine).

  • Open windows explorer.
  • Click search box in top right corner or F3 button.
  • Type Size:  in search box and select option you want (Refer below image).
  • You need to wait few minutes for file explorer to search your while drive. Wait until complete the status bar.
  • Reference : https://www.laptopmag.com/articles/save-space-windows-10

Clear “Recent File” History

If you have following question? here the solution

How to Clear Your File Explorer “Recent Files” History in Windows 10? or How to Clear Windows 10 Quick Access History in File Explorer?

  • In File Explorer, click the “File” menu and then choose the “Change folder and search options” command

Windows: Task Scheduler

Windows task scheduler feature will be default in windows OS.

Schedule Task in windows (Tested with Windows 10, 64-bit machine)

  • Goto -> Control panel -> Administrator tool-> task scheduler or  Ex : Control Panel\All Control Panel Items\Administrative Tools
  • Click “Task Scheduler Wizard” In Create Basic Task section: Give Name of your Task “Test ArunEworld”, and descriptions then click “Next”.
  • In Trigger section, select when do you want the task to start? options like Daily, Weekly, Monthly, One Time, When the computer starts, when I log on and when a specific event is logged. Then Click “Next”.
  • In Action section, select what action do you want the task to perform? options like Strat a program, Send an e-mail(deprecated), Display a message (deprecated). Then Click next.
  • Then Save the setting and run the task.
  • Reference: Link

Windows System Information

  • View all system information like system summary, hardware and software info.Goto -> Control panel -> Administrator tool-> system information.

How to Open Program and Feature in Windows?

  • Open Run command prompt.
  • Type appwiz.cpl and click enter.

Disable App Startup

Change which apps run automatically at startup in Windows 10 : https://support.microsoft.com/en-us/windows/change-which-apps-run-automatically-at-startup-in-windows-10-9115d841-735e-488d-e749-9ba301d441e6


Other FQA

How to run ‘sudo’ command in windows?

How to easily track how long my laptop battery actually lasted?

How Set DNS host in windows 10?

  • C:\Windows\System32\drivers\etc (Edit the host file) . Note : this was tested with Windows 10 and its working fine.

How combine multiple hard drives into one volume in Windows 10

Can you password protect a folder in Windows 10?

  • If you know the answer, Please post in comment Box.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.