Basic Structure of Windows Command

Q

What are basic structure of a Windows command?

✍: FYIcenter.com

A

The structure of a Windows command has 3 parts:

name options redirections

where: 
   name - The name of a built-in command or a program 
   options - A list of options separated by spaces
   redirections - A list of I/O redirection operations

For example, if you want to run the "tree" command with the option of "\windows\System32\spool" and the redirection of "| more", you can put them together and run it as shown below:

C:\fyicenter>tree \windows\System32\spool | more

Folder PATH listing for volume Windows7_OS
Volume serial number is 22E4-7A4B
C:\WINDOWS\SYSTEM32\SPOOL
├───drivers
│   ├───color
│   ├───IA64
│   ├───W32X86
│   └───x64
│       ├───3
│       │   ├───en-US
│       │   └───mui
│       │       └───0409
│       └───PCC
├───PRINTERS
├───prtprocs
│   └───x64
│       └───en-US
-- More  --

 

Manage Space in Command Name

Windows Command Syntax

Windows Command Syntax

⇑⇑ Windows Batch File Tutorials

2021-12-28, 1815🔥, 0💬