Edlin: e (end)

Renames the original input file on the disk with the .bak extension, writes the edited file from memory to the original input file on the disk, and then stops the Edlin.exe session.






Windows XP does not use this command. It is accepted only for compatibility with MS-DOS files. 

This tool is not available on Windows XP 64-Bit Edition. 

If the file in memory is one that you created during this session rather than one that Edlin.exe loaded from a disk, Edlin.exe does not create a backup (.bak) file on the disk.

Edlin.exe writes the edited file from memory to the drive, directory, and file name on a disk that you specified when you started the current Edlin.exe session. If you omitted a drive name at that time, Edlin.exe writes to the current drive. If you omitted a directory name at that time, Edlin.exe writes to the current directory.

Before using the e subcommand, make sure your disk contains enough free space for the entire edited file that is in memory. If it does not, Edlin.exe loses part or all of the file.

If you try to save an edited file from memory to a disk, but the .bak version of the file is a read-only file, Edlin.exe displays a message in the following format to inform you that edlin cannot replace the .bak file:

Access denied - [Drive:][Path] FileName.bak

Both the original and backup versions of your file on the disk remain unchanged.

Formatting legend



Information that the user must supply


Elements that the user must type exactly as shown

Ellipsis (...)

Parameter that can be repeated several times in a command line

Between brackets ([])

Optional items

Between braces ({}); choices separated by pipe (|). Example: {even|odd}

Set of choices from which the user must choose only one

Courier font

Code or program output


Edlin subcommands

Command-line reference A-Z

© 2016 Microsoft Corporation. All rights reserved. Contact Us |Terms of Use |Trademarks |Privacy & Cookies