EmEditor Home - EmEditor Help - Command Reference - File category

Rename and Save command

Summary

Renames and Saves the current file.

Description

Unlike the Save As command, this command renames the current file, then deletes the old file. This command displays the Save As dialog box, which allows you to enter a file name to save the currently opened file. After you specify a new file name, the prompt message "Are you sure you want to delete ...?" appears. Selecting Yes will delete the file with the previous name. Selecting No will not delete the previous name, but save the file as the new name, equivalent to the behavior of the Save As command.

To display information about each control such as a check box or a text box in the Save As dialog box, click on the ? button on the upper right corner in the dialog box, and click on a control on which you wish to find information.

If you want to save the file as a different name but do not want to delete the previous file, use the Save As command instead.

How to Run

Plug-in Command ID

Macros

[JavaScript]

editor.ExecuteCommandByID(4252);

[VBScript]

editor.ExecuteCommandByID 4252

Feedback Send feedback on this topic to Emurasoft

Copyright © 2003-2011 by Emurasoft, Inc.