Opening Editor with the File Last Edited in MS-DOS Shell (73727)

The information in this article applies to:
    Microsoft MS-DOS operating system 5.0
    Microsoft MS-DOS operating system 5.0a
    Microsoft MS-DOS operating system 6.0
    Microsoft MS-DOS operating system 6.2
    Microsoft MS-DOS operating system 6.21
    Microsoft MS-DOS operating system 6.22

This article was previously published under Q73727


Within MS-DOS Shell, you can start MS-DOS Editor with the file last edited as the default file to edit.


By default, when you open Editor from Shell, a File to Edit window (also called the %1 prompt dialog) appears and prompts you to enter the name of the file to edit. You must then type the name of the file and choose OK to edit an existing file, or you can choose OK to create a new file.

When opening a file that is also the most recently edited file, you can open Editor with that file loaded by doing the following:

    From Shell, select Editor (do not open Editor).
    From the main Shell menu, choose File Properties.
    In the Default Parameters field of the Program Items Properties window, enter %1.
    Choose OK to access the second Program Items Properties window and the %1 dialog.
    To open the currently selected file on the files list, enter %F in the Default Parameters field of this window.

    If you want the Editor to open the last edited file, enter %L.
    Choose OK to save your changes and exit to the previous window.
    Choose OK again to open the file that you selected in step 5.

Modification Type: Major Last Reviewed: 5/12/2003
Keywords: KB73727