IT tutorials
 
Windows
 

Windows Server 2008 : Basic Rules When Using the Command Prompt - Using Uppercase or Lowercase, Using Quotes

- Free product key for windows 10
- Free Product Key for Microsoft office 365
- Malwarebytes Premium 3.7.1 Serial Keys (LifeTime) 2019
5/2/2013 1:37:56 AM

1. Using Uppercase or Lowercase

In almost all instances, you can enter command prompt commands as uppercase, lowercase, or a combination of the two. In other words, the following commands are all interpreted the same:

Mixed CaseLowercaseUppercase
RepAdmin /SyncAllRepadmin /syncallREPADMIN /SYNCALL
ADPrep /ForestPrepadprep /forestprepADPREP /FORESTPREP
DCPromoDcpromoDCPROMO

Documentation and help files commonly show the first letter as uppercase and when the command has two words in it, both words are uppercase, such as RepAdmin. This is sometimes called Pascal-casing (from the Pascal language) or camel casing (because the uppercase letters resemble the humps of a camel). It’s done for readability and doesn’t affect how the command is interpreted at the command line.


There are some exceptions where case does matter, but they are rare. For example, when adding roles to a Windows Server 2008 Server Core installation, the case of the role is important. The proper case when adding the DHCP Server role with the ocsetup command is DHCPServerCore. The following table shows how to use the ocsetup command with the incorrect case and the proper case.

start ocsetup CommandDescription
start ocsetup serverroleThe start ocsetup command is used to add roles to a Server Core installation; however, the role must be entered in a specific case.
c:\>start ocsetup
dhcpservercore

The start ocsetup command must be entered using the exact case. The example command will fail (as shown in Figure 1) because DHCPServerCore isn’t entered with the proper case.
c:\>start ocsetup
DHCPServerCore

This command will succeed because DHCPServerCore is entered with the proper case.

Figure 1. Error from ocsetup command


2. Using Quotes

The command-line interpreter understands a space as the next part of the command. For example, consider how ping is used in the following table.

ping CommandDescription
C:\>ping dc1The space after ping indicates that ping is the command, and what follows (dc1) is a parameter for the ping command. This sends four echo requests to dc1 and gets four echo replies back if the server is operational.

Some parameters can have spaces. When a parameter has a space, the parameter must be enclosed in quotes. For example, you can use the netsh command to change the configuration of a network interface card (NIC). The default name of the first NIC is Local Area Connection but because Local Area Connection has spaces, it must be enclosed in quotes as “Local Area Connection” so that the netsh command can interpret it correctly.

Tip

The netsh command is the only way to configure the NIC for a Server Core installation. 


netsh CommandDescription
netsh interface ipv4 set address name
= Name of NIC static ip address subnet mask

The netsh command changes the configuration of a NIC. It needs the name of the NIC, an IP address, and a subnet mask.


C:\>netsh interface ipv4 set address
name = "local area connection" static
192.168.1.15 255.255.255.0

This command works, setting the IP address and subnet mask of the NIC. The default name of the first NIC is Local Area Connection and because it includes a space, it must be enclosed in quotes.
C:\>netsh interface ipv4 set address
name = local area connection static
192.168.1.15 255.255.255.0
Invalid source parameter (area).

This command fails. If local area connection is not enclosed in quotes, netsh interprets local as the name of the NIC but doesn’t understand area.

 
Others
 
- Windows 8 : Settings and Customization - Policies
- Windows 8 : Settings and Customization - The Registry
- Using Windows Home Server’s Command-Line Tools : Working at the Command Line
- Using Windows Home Server’s Command-Line Tools : Getting to the Command Line
- Windows Vista : Desktop Searching with the Windows Search Engine
- Windows Vista : Metadata and the Windows Explorer Property System
- Windows 7 : Email and Newsgroups with Windows Live Mail - Creating and Sending New Mail
- Windows 7 : Email and Newsgroups with Windows Live Mail - Windows Live Mail Quick Tour
- Monitoring Windows Small Business Server 2011 : Configuring the Backup Service (part 2) - Windows Server Backup Using Native Tools
- Monitoring Windows Small Business Server 2011 : Configuring the Backup Service (part 1) - Windows Server Backup Using SBS Wizards
 
 
Top 10
 
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Finding containers and lists in Visio (part 2) - Wireframes,Legends
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Finding containers and lists in Visio (part 1) - Swimlanes
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Formatting and sizing lists
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Adding shapes to lists
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Sizing containers
- Microsoft Access 2010 : Control Properties and Why to Use Them (part 3) - The Other Properties of a Control
- Microsoft Access 2010 : Control Properties and Why to Use Them (part 2) - The Data Properties of a Control
- Microsoft Access 2010 : Control Properties and Why to Use Them (part 1) - The Format Properties of a Control
- Microsoft Access 2010 : Form Properties and Why Should You Use Them - Working with the Properties Window
- Microsoft Visio 2013 : Using the Organization Chart Wizard with new data
Technology FAQ
- Is possible to just to use a wireless router to extend wireless access to wireless access points?
- Ruby - Insert Struct to MySql
- how to find my Symantec pcAnywhere serial number
- About direct X / Open GL issue
- How to determine eclipse version?
- What SAN cert Exchange 2010 for UM, OA?
- How do I populate a SQL Express table from Excel file?
- code for express check out with Paypal.
- Problem with Templated User Control
- ShellExecute SW_HIDE
programming4us programming4us