Edit Command In Windows Server 2008

In this article I am going to explain about Edit command in Windows Server 2008 operating system and also explain it's related syntax.
  • 2738

Introduction

Edit command is command-line tool that is built in Windows Server 2008. Edit command starts the MS-DOS editor which is a text editor used to create and edit ASCII text files. MS-DOS editor is a full screen text editor in which you can perform various functions like creating, editing, saving and printing ASCII files. Syntax for Edit command is given below.

Syntax

edit [/b] [/h] [/r] [/s] [/<NNN>] [[<Drive>:] [<Path>]<FileName> [<FileName2> [...]]

Parameters

Parameter Description
[<Drive>:][<Path>]<FileName> [<FileName2> [...]] Defines the location and name of the one or more than one text files. If the file exists, than it is opened and displays its contents but in case file does not exists than, MS-DOS editor creates it.
/b MS-DOS editor displays in black and white.
/h Displays the maximum number of lines possible for the current monitor.
/r Opens file in read only mode.
/s Use short file names.
<NNN> Loads binary files, wrapping lines to NNN characters wide.

Examples of edit command

Opens MS-DOS editor

edit

Ask Your Question

Got a programming related question? You may want to post your question here

Programming Answers here

Categories

More Articles

© 2020 DotNetHeaven. All rights reserved.